wyvern.lib.commands
Class LockPickCommand.LockablePredicate

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

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

A predicate that checks whether an object is lockable.


Constructor Summary
LockPickCommand.LockablePredicate()
           
 
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.LockablePredicate

public LockPickCommand.LockablePredicate()
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