|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.event.MapChangeAdapter
An abstract adapter class for receiving map change events. The methods in this class are empty. This class exists as a convenience for creating listener objects.
Extend this class to create a MapChangeEvent
listener,
and override the methods for the events of interest. (If you implement
the MapChangeListener
interface, you have to define all
of the methods in it. This abstract class defines null methods for them
all, so you only have to define methods for events you care about.)
Create a listener object using the extended class and then register
it with a map using the map's addMapChangeListener
method.
When the map is loaded, suspended, resumed, or unloaded, the relevant
method in the listener object is invoked, and the MapChangeEvent
is passed to it.
Constructor Summary | |
MapChangeAdapter()
|
Method Summary | |
void |
targetEnteredMap(MapChangeEvent event)
Notification that the target object has entered a map. |
void |
targetLeftMap(MapChangeEvent event)
Notification that the target object has left its map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MapChangeAdapter()
Method Detail |
public void targetEnteredMap(MapChangeEvent event)
MapChangeListener
targetEnteredMap
in interface MapChangeListener
public void targetLeftMap(MapChangeEvent event)
MapChangeListener
targetLeftMap
in interface MapChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |