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(ErrorCollector<G,A,R> errors)
The errors of a map model have changed.
|
void |
mapFileChanged(MapFile oldMapFile)
The map file has changed.
|
void |
mapObjectsChanged(java.util.Set<G> gameObjects,
java.util.Set<G> transientGameObjects)
One or more GameObjects on a map have changed.
|
void |
mapSizeChanged(Size2D newSize)
The size of a map has changed.
|
void |
mapSquaresChanged(java.util.Set<MapSquare<G,A,R>> mapSquares)
Squares of a map have changed.
|
void |
modifiedChanged()
The modified flag has changed.
|
void mapSizeChanged(@NotNull Size2D newSize)
newSize
- the new map sizevoid mapSquaresChanged(@NotNull java.util.Set<MapSquare<G,A,R>> mapSquares)
mapSquares
- the map squares that have been changedvoid mapObjectsChanged(@NotNull java.util.Set<G> gameObjects, @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 ErrorCollector<G,A,R> errors)
errors
- the new errorsvoid mapFileChanged(@Nullable MapFile oldMapFile)
oldMapFile
- the map file before the changevoid modifiedChanged()