Package megamek.client.event
Class MekDisplayEvent
java.lang.Object
java.util.EventObject
megamek.client.event.MekDisplayEvent
- All Implemented Interfaces:
Serializable
Instances of this class are sent as a result of changes in MekDisplay
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
WEAPON_SELECTED
public static final int WEAPON_SELECTED- See Also:
-
-
Constructor Details
-
MekDisplayEvent
-
-
Method Details
-
getType
public int getType()Returns the type of event that this is -
getEntityId
public int getEntityId()- Returns:
- the entity ID associated with this event, if applicable; -1 otherwise.
-
getWeaponId
public int getWeaponId()- Returns:
- the weapon ID associated with this event, if applicable; -1 otherwise.
-
getEntity
- Returns:
- the entity associated with event, or null
-
getEquip
- Returns:
- the equipment associated with the event or null
-