|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.maps.TopFinder.LayerVisitor
Used to visit every object at a map location and keep an ordered list of what it sees.
Constructor Summary | |
TopFinder.LayerVisitor(Predicate p)
Constructs a new LayerVisitor with a predicate used to filter the visited objects. |
Method Summary | |
GameObject |
getObject()
Returns the topmost object we found. |
void |
visit(GameObject obj)
Remember one object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TopFinder.LayerVisitor(Predicate p)
Method Detail |
public void visit(GameObject obj)
visit
in interface Visitor
obj
- a GameObjectpublic GameObject getObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |