Package megamek.common.event
Class GameNewActionEvent
java.lang.Object
java.util.EventObject
megamek.common.event.GameEvent
megamek.common.event.GameNewActionEvent
- All Implemented Interfaces:
Serializable
Instances of this class are sent when new Action added to the game
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGameNewActionEvent(Object source, EntityAction action) Construct new GameNewActionEvent -
Method Summary
Modifier and TypeMethodDescriptionvoidSub-classed events implement this method to call their specific method on a GameListener instance that their event has been fired.Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
action
-
-
Constructor Details
-
GameNewActionEvent
Construct new GameNewActionEvent- Parameters:
source- sender
-
-
Method Details
-
getAction
- Returns:
- the action.
-
fireEvent
Description copied from class:GameEventSub-classed events implement this method to call their specific method on a GameListener instance that their event has been fired. -
getEventName
- Specified by:
getEventNamein classGameEvent
-