Package megamek.common.event.board
Class BoardListenerAdapter
java.lang.Object
megamek.common.event.board.BoardListenerAdapter
- All Implemented Interfaces:
EventListener,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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSent when all Hexes on the Board changed The default behavior is to do nothing.voidSent when Hex on the Board changed The default behavior is to do nothing.voidSent when Board completely changed The default behavior is to do nothing.
-
Constructor Details
-
BoardListenerAdapter
public BoardListenerAdapter()
-
-
Method Details
-
boardNewBoard
Sent when Board completely changed The default behavior is to do nothing.- Specified by:
boardNewBoardin interfaceBoardListener- Parameters:
b- an event containing information about the change
-
boardChangedHex
Sent when Hex on the Board changed The default behavior is to do nothing.- Specified by:
boardChangedHexin interfaceBoardListener- Parameters:
b- an event containing information about the change
-
boardChangedAllHexes
Sent when all Hexes on the Board changed The default behavior is to do nothing.- Specified by:
boardChangedAllHexesin interfaceBoardListener- Parameters:
b- an event containing information about the change
-