public class DelayedMapModelListenerManager<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
MapModel
changes.Constructor and Description |
---|
DelayedMapModelListenerManager(@NotNull MapManager<G,A,R> mapManager,
@NotNull Exiter exiter)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addDelayedMapModelListener(@NotNull DelayedMapModelListener<G,A,R> listener)
Adds a
DelayedMapModelListener to be notified. |
void |
removeDelayedMapModelListener(@NotNull DelayedMapModelListener<G,A,R> listener)
Removes a
DelayedMapModelListener to be notified. |
void |
scheduleAllMapModels()
Schedules all
MapModels as changed. |
void |
start()
Starts execution.
|
public DelayedMapModelListenerManager(@NotNull @NotNull MapManager<G,A,R> mapManager, @NotNull @NotNull Exiter exiter)
mapManager
- the map manager to trackexiter
- the exiter instancepublic void start()
public void addDelayedMapModelListener(@NotNull @NotNull DelayedMapModelListener<G,A,R> listener)
DelayedMapModelListener
to be notified.listener
- the listenerpublic void removeDelayedMapModelListener(@NotNull @NotNull DelayedMapModelListener<G,A,R> listener)
DelayedMapModelListener
to be notified.listener
- the listenerpublic void scheduleAllMapModels()
MapModels
as changed.