megamek.common.event
Class BoardEvent
java.lang.Object
java.util.EventObject
megamek.common.event.BoardEvent
- All Implemented Interfaces:
- java.io.Serializable
public class BoardEvent
- extends java.util.EventObject
Instances of this class are sent as a result of Board change
- See Also:
BoardListener,
Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
BoardEvent(java.lang.Object source,
Coords coords,
int type)
|
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BOARD_NEW_BOARD
public static final int BOARD_NEW_BOARD
- See Also:
- Constant Field Values
BOARD_CHANGED_HEX
public static final int BOARD_CHANGED_HEX
- See Also:
- Constant Field Values
BOARD_CHANGED_ALL_HEXES
public static final int BOARD_CHANGED_ALL_HEXES
- See Also:
- Constant Field Values
BoardEvent
public BoardEvent(java.lang.Object source,
Coords coords,
int type)
getType
public int getType()
- Returns:
- the type of event that this is
getCoords
public Coords getCoords()
- Returns:
- the coordinate where this event occurred, if applicable;
null otherwise.