wyvern.lib.commands
Class LockPickCommand.LockedPredicate

java.lang.Object
  extended bywyvern.lib.commands.LockPickCommand.LockedPredicate
All Implemented Interfaces:
Predicate
Enclosing class:
LockPickCommand

public static class LockPickCommand.LockedPredicate
extends java.lang.Object
implements Predicate

A predicate that checks whether an object is locked.


Constructor Summary
LockPickCommand.LockedPredicate()
           
 
Method Summary
 boolean predicate(GameObject obj)
          Checks if the object has a lock on it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockPickCommand.LockedPredicate

public LockPickCommand.LockedPredicate()
Method Detail

predicate

public boolean predicate(GameObject obj)
Checks if the object has a lock on it. The lock can be in any state; we just check to see if there is one.

Specified by:
predicate in interface Predicate
Parameters:
obj - the object to check
Returns:
true if it has a lock