public interface MapModelListener<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.util.EventListener
MapModel events.| Modifier and Type | Method and Description |
|---|---|
void |
errorsChanged(@NotNull ErrorCollector<G,A,R> errors)
The errors of a map model have changed.
|
void |
mapFileChanged(@Nullable MapFile oldMapFile)
The map file has changed.
|
void |
mapObjectsChanged(@NotNull java.util.Set<G> gameObjects,
@NotNull java.util.Set<G> transientGameObjects)
One or more GameObjects on a map have changed.
|
void |
mapSizeChanged(@NotNull Size2D newSize)
The size of a map has changed.
|
void |
mapSquaresChanged(@NotNull java.util.Set<MapSquare<G,A,R>> mapSquares)
Squares of a map have changed.
|
void |
modifiedChanged()
The modified flag has changed.
|
void mapSizeChanged(@NotNull
@NotNull Size2D newSize)
newSize - the new map sizevoid mapSquaresChanged(@NotNull
@NotNull java.util.Set<MapSquare<G,A,R>> mapSquares)
mapSquares - the map squares that have been changedvoid mapObjectsChanged(@NotNull
@NotNull java.util.Set<G> gameObjects,
@NotNull
@NotNull java.util.Set<G> transientGameObjects)
gameObjects - the change objects that have been changed; does not
include game objects that have changed transiently onlytransientGameObjects - the game objects that have been changed
transiently; does not include game objects that have changed
non-transientlyvoid errorsChanged(@NotNull
@NotNull ErrorCollector<G,A,R> errors)
errors - the new errorsvoid mapFileChanged(@Nullable
@Nullable MapFile oldMapFile)
oldMapFile - the map file before the changevoid modifiedChanged()