|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.predicates.HashcodePredicate
Checks an object to see if it's got the right hashcode. A hashcode is an int value that uniquely identifies an object in the game. The hashcode is usually the ONLY way to be 100% sure that the object is the exact one you want, rather than just a lookalike.
Constructor Summary | |
HashcodePredicate(int hashcode)
Creates a HashcodePredicate with the specified hashcode. |
|
HashcodePredicate(java.lang.String code)
Constructs a new HashcodePredicate |
Method Summary | |
boolean |
predicate(GameObject obj)
Returns true for the object matching the passed hashcode. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HashcodePredicate(int hashcode)
hashcode
- the hashcode to match.public HashcodePredicate(java.lang.String code)
code
- the hashcode as a stringMethod Detail |
public boolean predicate(GameObject obj)
predicate
in interface Predicate
obj
- object to match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |