Package megamek.common.event
Class GameVictoryEvent
java.lang.Object
java.util.EventObject
megamek.common.event.GameEvent
megamek.common.event.GameVictoryEvent
- All Implemented Interfaces:
Serializable,PostGameResolution
An event that is fired at the end of the victory phase, before the game state is reset. It can be used to retrieve
information from the game before the state is reset and the lounge phase begins.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
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 an enumeration of entities that were utterly destroyedgetEntity(int id) Returns an enumeration of entities that have retreatedMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
GameVictoryEvent
- Parameters:
source- event source
-
-
Method Details
-
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
-
getEntities
- Specified by:
getEntitiesin interfacePostGameResolution- Returns:
- an enumeration of all the entities in the game.
-
getEntity
- Specified by:
getEntityin interfacePostGameResolution- Returns:
- the entity with the given id number, if any.
-
getGraveyardEntities
- Specified by:
getGraveyardEntitiesin interfacePostGameResolution- Returns:
- an enumeration of salvageable entities.
-
getWreckedEntities
- Specified by:
getWreckedEntitiesin interfacePostGameResolution- Returns:
- an enumeration of wrecked entities.
-
getRetreatedEntities
Returns an enumeration of entities that have retreated- Specified by:
getRetreatedEntitiesin interfacePostGameResolution
-
getDevastatedEntities
Returns an enumeration of entities that were utterly destroyed- Specified by:
getDevastatedEntitiesin interfacePostGameResolution
-