|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.predicates.TypePredicate
Checks whether an object inherits from a specified Archetype.
Constructor Summary | |
TypePredicate(java.lang.String type)
Constructs a new TypePredicate for the specified type. |
Method Summary | |
boolean |
predicate(GameObject obj)
Returns true if an object is an "instance" of a specified archetype. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TypePredicate(java.lang.String type)
type
- the path to the archetype, e.g.
"objects/treasure/gold_coins" (a system archetype) or
"wiz/foobar/misc/quest_item" (a wizard-defined archetype)Method Detail |
public boolean predicate(GameObject obj)
predicate
in interface Predicate
obj
- the object to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |