public class LightMapModelTracker<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
MapModel
for light emitting game objects. Whenever such a
game object is added to, removed from, or modified while on the map, all
affected map squares are updated.Constructor and Description |
---|
LightMapModelTracker(@NotNull MapModel<G,A,R> mapModel)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
mapSizeChanging(@NotNull Size2D newSize,
@NotNull Size2D oldSize)
Called whenever the tracked map is about to change size.
|
void |
mapSquaresChanged(@NotNull java.lang.Iterable<MapSquare<G,A,R>> mapSquares)
Called whenever some game objects have changed.
|