Class ErroneousMapSquares<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Constructor Detail

      • ErroneousMapSquares

        public ErroneousMapSquares​(@NotNull
                                   @NotNull MapModel<G,​A,​R> mapModel,
                                   @NotNull
                                   @NotNull MapGrid mapGrid,
                                   @NotNull
                                   @NotNull AbstractMapRenderer<G,​A,​R> renderer)
        Creates a new instance.
        Parameters:
        mapModel - the map model to track
        mapGrid - the map grid to mark
        renderer - the renderer to notify
    • Method Detail

      • closeNotify

        public void closeNotify()
        Must be called when this instance is not used anymore. It un-registers all listeners.
      • errorsChanged

        protected void errorsChanged​(@NotNull
                                     @NotNull ErrorCollector<G,​A,​R> errors)
        Updates the erroneous map squares.
        Parameters:
        errors - the errors to display