|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.event.MapPlayerEvent
A notification sent to wyvern.lib.properties.MapPlayerListener objects when any player enters the map, leaves the map, or moves in the map.
Field Summary | |
static int |
ENTERED_MAP
|
static int |
LEFT_MAP
|
static int |
MOVED_IN_MAP
|
Constructor Summary | |
MapPlayerEvent(GameMap map,
Player player,
int type,
Point source)
Constructs a new MapPlayerEvent. |
Method Summary | |
GameMap |
getMap()
Returns GameMap where the event occurred. |
Player |
getPlayer()
Returns player who entered/left/moved |
Point |
getSource()
Returns an extra piece of information, depending on the event type. |
int |
getType()
Returns event type |
java.lang.String |
toString()
Returns debugging string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ENTERED_MAP
public static final int LEFT_MAP
public static final int MOVED_IN_MAP
Constructor Detail |
public MapPlayerEvent(GameMap map, Player player, int type, Point source)
Method Detail |
public int getType()
public Player getPlayer()
public Point getSource()
public GameMap getMap()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |