wyvern.lib.commands
Class ReadyCommand.ReadyPredicate

java.lang.Object
  extended bywyvern.lib.commands.ReadyCommand.ReadyPredicate
All Implemented Interfaces:
Predicate
Enclosing class:
ReadyCommand

protected class ReadyCommand.ReadyPredicate
extends java.lang.Object
implements Predicate

Checks each object to see if it matches the name AND implements the Readyable interface.


Constructor Summary
ReadyCommand.ReadyPredicate(java.lang.String target)
          Constructs a new ReadyPredicate
 
Method Summary
 boolean predicate(GameObject obj)
          Returns true if the object matches.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadyCommand.ReadyPredicate

public ReadyCommand.ReadyPredicate(java.lang.String target)
Constructs a new ReadyPredicate

Parameters:
target - the thing to ready
Method Detail

predicate

public boolean predicate(GameObject obj)
Returns true if the object matches.

Specified by:
predicate in interface Predicate
Parameters:
obj - any GameObject
Returns:
true if the object passes, else false