Package megamek.common.event
Class GamePhaseChangeEvent
java.lang.Object
java.util.EventObject
megamek.common.event.GameEvent
megamek.common.event.GamePhaseChangeEvent
- All Implemented Interfaces:
Serializable
Instances of this class are sent when Game phase changes
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionGamePhaseChangeEvent(Object source, GamePhase oldPhase, GamePhase newPhase) Constructs newGamePhaseChangeEvent -
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.Returns the newPhase.Returns the oldPhase.Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
GamePhaseChangeEvent
Constructs newGamePhaseChangeEvent- Parameters:
source- Event source
-
-
Method Details
-
getNewPhase
Returns the newPhase.- Returns:
- the newPhase.
-
getOldPhase
Returns the oldPhase.- Returns:
- the oldPhase.
-
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
-