|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.maps.TopFinder
Find the top visible object at a given map location.
Nested Class Summary | |
protected static class |
TopFinder.LayerVisitor
Used to visit every object at a map location and keep an ordered list of what it sees. |
Constructor Summary | |
TopFinder()
|
Method Summary | |
static GameObject |
topObject(GameMap map,
int x,
int y)
Find the top object in a map location. |
static GameObject |
topObject(GameMap map,
int x,
int y,
Predicate p)
Find the top (i.e. highest drawing layer) object at a map location that passes a specified predicate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TopFinder()
Method Detail |
public static GameObject topObject(GameMap map, int x, int y, Predicate p)
map
- The map to search.x
- The horizontal location.y
- The vertical location.p
- a predicate that returns true if the object is OK.
public static GameObject topObject(GameMap map, int x, int y)
map
- The map to search.x
- The horizontal location.y
- The vertical location.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |