Class BoardListenerAdapter

java.lang.Object
megamek.common.event.board.BoardListenerAdapter
All Implemented Interfaces:
EventListener, BoardListener

public class BoardListenerAdapter extends Object implements BoardListener
This adapter class provides default implementations for the methods described by the BoardListener interface.

Classes that wish to deal with BoardEvents can extend this class and override only the methods which they are interested in.

See Also:
  • Constructor Details

    • BoardListenerAdapter

      public BoardListenerAdapter()
  • Method Details

    • boardNewBoard

      public void boardNewBoard(BoardEvent b)
      Sent when Board completely changed The default behavior is to do nothing.
      Specified by:
      boardNewBoard in interface BoardListener
      Parameters:
      b - an event containing information about the change
    • boardChangedHex

      public void boardChangedHex(BoardEvent b)
      Sent when Hex on the Board changed The default behavior is to do nothing.
      Specified by:
      boardChangedHex in interface BoardListener
      Parameters:
      b - an event containing information about the change
    • boardChangedAllHexes

      public void boardChangedAllHexes(BoardEvent b)
      Sent when all Hexes on the Board changed The default behavior is to do nothing.
      Specified by:
      boardChangedAllHexes in interface BoardListener
      Parameters:
      b - an event containing information about the change