public class MapViewManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements java.lang.Iterable<MapView<G,A,R>>
Constructor and Description |
---|
MapViewManager() |
Modifier and Type | Method and Description |
---|---|
void |
activateMapView(@NotNull MapView<G,A,R> mapView)
Activates a map view.
|
void |
addMapView(@NotNull MapView<G,A,R> mapView)
Adds a map view.
|
void |
addMapViewManagerListener(@NotNull MapViewManagerListener<G,A,R> listener)
Adds a listener to be notified.
|
void |
deactivateMapView(@NotNull MapView<G,A,R> mapView)
Deactivates a map view.
|
boolean |
doNextWindow(boolean performAction)
Executes the "next window" action.
|
boolean |
doPrevWindow(boolean performAction)
Executes the "prev window" action.
|
@Nullable MapView<G,A,R> |
getActiveMapView()
Returns the active top map view we are working with.
|
@NotNull java.util.Iterator<MapView<G,A,R>> |
iterator()
Returns all opened map views.
|
void |
removeMapView(@NotNull MapView<G,A,R> mapView)
Removes a map view.
|
void |
removeMapViewManagerListener(@NotNull MapViewManagerListener<G,A,R> listener)
Removes a listener to be notified.
|
void |
setActiveMapView(@NotNull MapView<G,A,R> mapView)
Sets the active map view.
|
public void setActiveMapView(@NotNull @NotNull MapView<G,A,R> mapView)
mapView
- the map view to activatepublic void removeMapView(@NotNull @NotNull MapView<G,A,R> mapView)
mapView
- the map view to removepublic void addMapView(@NotNull @NotNull MapView<G,A,R> mapView)
mapView
- the map view to addpublic void deactivateMapView(@NotNull @NotNull MapView<G,A,R> mapView)
mapView
- the map view to deactivatepublic void activateMapView(@NotNull @NotNull MapView<G,A,R> mapView)
mapView
- the map view to activate@NotNull public @NotNull java.util.Iterator<MapView<G,A,R>> iterator()
public void addMapViewManagerListener(@NotNull @NotNull MapViewManagerListener<G,A,R> listener)
listener
- the listener to addpublic void removeMapViewManagerListener(@NotNull @NotNull MapViewManagerListener<G,A,R> listener)
listener
- the listener to remove@Nullable public @Nullable MapView<G,A,R> getActiveMapView()
null
if no
map view is openpublic boolean doPrevWindow(boolean performAction)
performAction
- whether the action should be performedpublic boolean doNextWindow(boolean performAction)
performAction
- whether the action should be performed