public interface MapManagerListener<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.util.EventListener
MapManager changes. The
following events are created (in roughly the given order):
mapCreated(MapControl, boolean) - after a map has been created
or opened
currentMapChanged(MapControl) - the newly created map now is
the current map
mapClosed(MapControl) - the map has been closed
| Modifier and Type | Method and Description |
|---|---|
void |
currentMapChanged(@Nullable MapControl<G,A,R> mapControl)
This event handler is called when the current map has changed.
|
void |
mapClosed(@NotNull MapControl<G,A,R> mapControl)
This event handler is called when a map has been closed.
|
void |
mapClosing(@NotNull MapControl<G,A,R> mapControl)
This event handler is called when a map is to be closed.
|
void |
mapCreated(@NotNull MapControl<G,A,R> mapControl,
boolean interactive)
This event handler is called when a map was created.
|
void currentMapChanged(@Nullable
@Nullable MapControl<G,A,R> mapControl)
mapControl - the new map control, or null if no opened map
existsvoid mapCreated(@NotNull
@NotNull MapControl<G,A,R> mapControl,
boolean interactive)
mapControl - the created map controlinteractive - whether the map has been loaded interactivelyvoid mapClosing(@NotNull
@NotNull MapControl<G,A,R> mapControl)
mapClosed(MapControl) will be called.mapControl - the map control that is to be closedvoid mapClosed(@NotNull
@NotNull MapControl<G,A,R> mapControl)
mapControl - the map control that has been closed