megamek.client.event
Class BoardViewEvent
java.lang.Object
java.util.EventObject
megamek.client.event.BoardViewEvent
- All Implemented Interfaces:
- java.io.Serializable
public class BoardViewEvent
- extends java.util.EventObject
Instances of this class are sent as a result of changes in BoardView
- See Also:
BoardViewListener,
Serialized Form
| Fields inherited from class java.util.EventObject |
source |
| 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_HEX_CLICKED
public static final int BOARD_HEX_CLICKED
- See Also:
- Constant Field Values
BOARD_HEX_DOUBLECLICKED
public static final int BOARD_HEX_DOUBLECLICKED
- See Also:
- Constant Field Values
BOARD_HEX_DRAGGED
public static final int BOARD_HEX_DRAGGED
- See Also:
- Constant Field Values
BOARD_HEX_CURSOR
public static final int BOARD_HEX_CURSOR
- See Also:
- Constant Field Values
BOARD_HEX_HIGHLIGHTED
public static final int BOARD_HEX_HIGHLIGHTED
- See Also:
- Constant Field Values
BOARD_HEX_SELECTED
public static final int BOARD_HEX_SELECTED
- See Also:
- Constant Field Values
BOARD_FIRST_LOS_HEX
public static final int BOARD_FIRST_LOS_HEX
- See Also:
- Constant Field Values
BOARD_SECOND_LOS_HEX
public static final int BOARD_SECOND_LOS_HEX
- See Also:
- Constant Field Values
FINISHED_MOVING_UNITS
public static final int FINISHED_MOVING_UNITS
- See Also:
- Constant Field Values
SELECT_UNIT
public static final int SELECT_UNIT
- See Also:
- Constant Field Values
BOARD_HEX_POPUP
public static final int BOARD_HEX_POPUP
- See Also:
- Constant Field Values
BoardViewEvent
public BoardViewEvent(java.lang.Object source,
Coords c,
Entity entity,
int type,
int modifiers)
BoardViewEvent
public BoardViewEvent(java.lang.Object source,
int type)
BoardViewEvent
public BoardViewEvent(java.lang.Object source,
int type,
int entityId)
getType
public int getType()
- Returns the type of event that this is
getModifiers
public int getModifiers()
- Returns the type of event that this is
getCoords
public Coords getCoords()
- Returns:
- the coordinate where this event occurred, if applicable;
null otherwise.
getEntity
public Entity getEntity()
- Returns:
- the entity associated with this event, if applicable;
null otherwise.
getEntityId
public int getEntityId()
- Returns:
- the entity ID associated with this event, if applicable; 0
otherwise.