megamek.common.event
Interface BoardListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
BoardListenerAdapter, BoardView1, BoardView1, BoardView3D

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

Method Summary
 void boardChangedAllHexes(BoardEvent b)
          Sent when all hexes on the board changed
 void boardChangedHex(BoardEvent b)
          Sent when Hex on the Board changed
 void boardNewBoard(BoardEvent b)
          Sent when Board completely changed
 

Method Detail

boardNewBoard

void boardNewBoard(BoardEvent b)
Sent when Board completely changed

Parameters:
b - an event containing information about the change

boardChangedHex

void boardChangedHex(BoardEvent b)
Sent when 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