|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.predicates.BooleanPredicate
Returns true if an object has the specified boolean property.
Constructor Summary | |
BooleanPredicate(java.lang.String name)
Constructs a new BooleanPredicate for the specified type. |
Method Summary | |
java.lang.String |
getProperty()
|
boolean |
predicate(GameObject obj)
Checks an object to see if it passes the predicate. |
java.lang.String |
print()
Prints an English-like description of the predicate, e.g. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BooleanPredicate(java.lang.String name)
Method Detail |
public java.lang.String getProperty()
public boolean predicate(GameObject obj)
Predicate
predicate
in interface Predicate
obj
- any GameObject
public java.lang.String toString()
public java.lang.String print()
PrintablePredicate
print
in interface PrintablePredicate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |