|
||||||||||
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.MapLifecycleEvent
A notification that's delivered on major map events, such as done loading, suspend, resume, and unload.
Nested Class Summary | |
static class |
MapLifecycleEvent.EventType
|
Field Summary | |
static MapLifecycleEvent.EventType |
LOAD
MapLifecycleEvent type for when map has finished loading (all the objects are added). |
static MapLifecycleEvent.EventType |
RESUME
MapLifecycleEvent type for when a map has just been resumed. |
static MapLifecycleEvent.EventType |
SUSPEND
MapLifecycleEvent type for when a map has just been suspended. |
static MapLifecycleEvent.EventType |
UNLOAD
MapLifecycleEvent type for when map is about to unload and dismantle itself, but before all of its objects have been removed. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
MapLifecycleEvent(GameMap map,
MapLifecycleEvent.EventType type)
Constructs a new MapLifecycleEvent |
Method Summary | |
MapLifecycleEvent.EventType |
getEventType()
Returns event type |
GameMap |
getMap()
Returns the map for which this event took place. |
java.lang.String |
toString()
Returns debugging string. |
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 MapLifecycleEvent.EventType LOAD
public static final MapLifecycleEvent.EventType UNLOAD
public static final MapLifecycleEvent.EventType SUSPEND
public static final MapLifecycleEvent.EventType RESUME
Constructor Detail |
public MapLifecycleEvent(GameMap map, MapLifecycleEvent.EventType type)
Method Detail |
public MapLifecycleEvent.EventType getEventType()
public GameMap getMap()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |