megamek.common.event
Class BoardListenerAdapter

java.lang.Object
  extended by megamek.common.event.BoardListenerAdapter
All Implemented Interfaces:
java.util.EventListener, BoardListener

public class BoardListenerAdapter
extends java.lang.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:
BoardListener, BoardEvent

Constructor Summary
BoardListenerAdapter()
           
 
Method Summary
 void boardChangedAllHexes(BoardEvent b)
          Sent when all Hexes on the Board changed The default behavior is to do nothing.
 void boardChangedHex(BoardEvent b)
          Sent when Hex on the Board changed The default behavior is to do nothing.
 void boardNewBoard(BoardEvent b)
          Sent when Board completely changed The default behavior is to do nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoardListenerAdapter

public BoardListenerAdapter()
Method Detail

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