Interface BoardListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
BoardListenerAdapter, BoardView, HexTileset

public interface BoardListener extends EventListener
Classes which implement this interface provide methods that deal with the events that are generated when the Board is changed.

After creating an instance of a class that implements this interface it can be added to a Board using the addBoardListener method and removed using the removeBoardListener method. When board is changed the appropriate method will be invoked.

See Also:
  • Method Details

    • boardNewBoard

      void boardNewBoard(BoardEvent b)
      Sent when the Board is completely changed. The board's size may have changed.
      Parameters:
      b - an event containing information about the change
    • boardChangedHex

      void boardChangedHex(BoardEvent b)
      Sent when a single hex on the Board changed.
      Parameters:
      b - an event containing information about the change
    • boardChangedAllHexes

      void boardChangedAllHexes(BoardEvent b)
      Sent when all hexes on the board changed.
      Parameters:
      b - an event containing information about the change