|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwyvern.lib.predicates.ArchetypePredicate
Checks for an object of the specified Archetype, using wyvern.lib.Kernel.isInstance().
| Field Summary | |
protected java.lang.String |
arch_
|
| Constructor Summary | |
ArchetypePredicate(java.lang.String arch)
Constructs a new ArchetypePredicate for a given archetype. |
|
| Method Summary | |
boolean |
predicate(GameObject obj)
Return true if the passed object has one of the listed properties. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String arch_
| Constructor Detail |
public ArchetypePredicate(java.lang.String arch)
arch - the name of the archetype in question, e.g.
"objects/treasure/gold_coins".| Method Detail |
public boolean predicate(GameObject obj)
predicate in interface Predicateobj - any GameObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||