public class ErroneousMapSquares<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
MapModel
for changed erroneous map squares and updates a
MapGrid
and an AbstractMapRenderer
accordingly.Constructor and Description |
---|
ErroneousMapSquares(@NotNull MapModel<G,A,R> mapModel,
@NotNull MapGrid mapGrid,
@NotNull AbstractMapRenderer<G,A,R> renderer)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
closeNotify()
Must be called when this instance is not used anymore.
|
protected void |
errorsChanged(@NotNull ErrorCollector<G,A,R> errors)
Updates the erroneous map squares.
|
public ErroneousMapSquares(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull @NotNull MapGrid mapGrid, @NotNull @NotNull AbstractMapRenderer<G,A,R> renderer)
mapModel
- the map model to trackmapGrid
- the map grid to markrenderer
- the renderer to notifypublic void closeNotify()
protected void errorsChanged(@NotNull @NotNull ErrorCollector<G,A,R> errors)
errors
- the errors to display