Package megamek.common.event.board
Interface BoardListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
BoardListenerAdapter
,BoardView
,HexTileset
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 Summary
Modifier and TypeMethodDescriptionvoid
Sent when all hexes on the board changed.void
Sent when a single hex on the Board changed.void
Sent when the Board is completely changed.
-
Method Details
-
boardNewBoard
Sent when the Board is completely changed. The board's size may have changed.- Parameters:
b
- an event containing information about the change
-
boardChangedHex
Sent when a single hex on the Board changed.- Parameters:
b
- an event containing information about the change
-
boardChangedAllHexes
Sent when all hexes on the board changed.- Parameters:
b
- an event containing information about the change
-