|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.predicates.InstancePredicate
A predicate to check if the passed object is an instance of the specified archetype.
Constructor Summary | |
InstancePredicate(java.lang.String type)
Constructs a new InstancePredicate |
Method Summary | |
void |
addType(java.lang.String type)
Adds another type to check for. |
boolean |
predicate(GameObject obj)
Returns true if the passed object is of the archetype type specified in the constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InstancePredicate(java.lang.String type)
type
- an archetype, such as "magic/reagent/sulfur".Method Detail |
public void addType(java.lang.String type)
public boolean predicate(GameObject obj)
predicate
in interface Predicate
obj
- any GameObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |