|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Listener interface for objects that want to be notified when a particular map loads, unloads, suspends, or resumes.
The typical use is to have your GameObject class implement MapLifecycleListener, put it in a map, and it will automatically start receiving the notifications. It stops receiving the notifications as soon as it's removed/destroyed.
The only way you'll get the MapLifecycleEvent.LOAD event type is if your object is placed in the map while it's loading, which means you've put an archetype for it in the map file, either by hand or with the map editor. You could also do it by implementing a custom MapLoader or GameMap class.
Method Summary | |
void |
mapLoaded(MapLifecycleEvent event)
Invoked when a map is loaded. |
void |
mapResumed(MapLifecycleEvent event)
Invoked when a map is resumed. |
void |
mapSuspended(MapLifecycleEvent event)
Invoked when a map is suspended. |
void |
mapUnloaded(MapLifecycleEvent event)
Invoked when a map is unloaded. |
Method Detail |
public void mapLoaded(MapLifecycleEvent event)
public void mapUnloaded(MapLifecycleEvent event)
public void mapSuspended(MapLifecycleEvent event)
public void mapResumed(MapLifecycleEvent event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |