megamek.client.event
Class BoardViewEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
static int BOARD_FIRST_LOS_HEX
           
static int BOARD_HEX_CLICKED
           
static int BOARD_HEX_CURSOR
           
static int BOARD_HEX_DOUBLECLICKED
           
static int BOARD_HEX_DRAGGED
           
static int BOARD_HEX_HIGHLIGHTED
           
static int BOARD_HEX_POPUP
           
static int BOARD_HEX_SELECTED
           
static int BOARD_SECOND_LOS_HEX
           
static int FINISHED_MOVING_UNITS
           
static int SELECT_UNIT
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BoardViewEvent(java.lang.Object source, Coords c, Entity entity, int type, int modifiers)
           
BoardViewEvent(java.lang.Object source, int type)
           
BoardViewEvent(java.lang.Object source, int type, int entityId)
           
 
Method Summary
 Coords getCoords()
           
 Entity getEntity()
           
 int getEntityId()
           
 int getModifiers()
          Returns the type of event that this is
 int getType()
          Returns the type of event that this is
 
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
 

Field Detail

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
Constructor Detail

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)
Method Detail

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.