|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject wyvern.lib.event.MapChangeEvent
An event that indicates that an object has entered or left its map.
Nested Class Summary | |
static class |
MapChangeEvent.EventType
|
Field Summary | |
static MapChangeEvent.EventType |
ENTER
|
static MapChangeEvent.EventType |
EXIT
|
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
MapChangeEvent(GameMap map,
GameObject obj,
int x,
int y,
MapChangeEvent.EventType type)
Constructs a new MapChangeEvent |
Method Summary | |
MapChangeEvent.EventType |
getEventType()
Returns the type of this event. |
GameMap |
getMap()
Returns the map where this occurred. |
GameObject |
getTarget()
Returns the object that moved. |
int |
getX()
Returns the map x location where the object entered or exited the map. |
int |
getY()
Returns the map y location where the object entered or exited the map. |
java.lang.String |
toString()
|
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final MapChangeEvent.EventType ENTER
public static final MapChangeEvent.EventType EXIT
Constructor Detail |
public MapChangeEvent(GameMap map, GameObject obj, int x, int y, MapChangeEvent.EventType type)
obj
- the object that entered or left the mapx
- the map x location at which the object entered or lefty
- the map y location at which the object entered or lefttype
- the MapChangeEvent.EventType for this eventMethod Detail |
public GameMap getMap()
public GameObject getTarget()
public int getX()
public int getY()
public MapChangeEvent.EventType getEventType()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |