|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.predicates.BlockingPredicate
This predicate checks for things like walls, living things, buildings, etc. Anything that impedes motion or would prevent another blocking object from being placed there.
Constructor Summary | |
BlockingPredicate()
Constructs a new BlockingPredicate with no exclusions. |
|
BlockingPredicate(GameObject obj)
Constructs a new BlockingPredicate |
Method Summary | |
boolean |
predicate(GameObject o)
Checks an object to see if it passes the predicate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BlockingPredicate()
public BlockingPredicate(GameObject obj)
obj
- an object to exclude from the search,
even if it's blocking.Method Detail |
public boolean predicate(GameObject o)
Predicate
predicate
in interface Predicate
o
- any GameObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |