Package megamek.common.enums
Enum Class GamePhase
- All Implemented Interfaces:
Serializable,Comparable<GamePhase>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanisDuringOrAfter(GamePhase otherPhase) booleanisEnd()booleanbooleanbooleanisFiring()booleanbooleanbooleanbooleanbooleanisLounge()booleanbooleanbooleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.booleanisOnMap()Returns true when this phase shows the game map.booleanbooleanbooleanbooleanbooleanbooleanbooleanisReport()booleanbooleanbooleanisSimultaneous(Game game) booleanbooleanbooleanDeprecated, for removal: This API element is subject to removal in a future version.booleanbooleanbooleantoString()booleanstatic GamePhaseReturns the enum constant of this class with the specified name.static GamePhase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
LOUNGE
-
SELECTION
-
EXCHANGE
-
DEPLOYMENT
-
INITIATIVE
-
INITIATIVE_REPORT
-
SBF_DETECTION
-
SBF_DETECTION_REPORT
-
TARGETING
-
TARGETING_REPORT
-
PREMOVEMENT
-
MOVEMENT
-
MOVEMENT_REPORT
-
OFFBOARD
-
OFFBOARD_REPORT
-
POINTBLANK_SHOT
-
PRE_FIRING
-
FIRING
-
FIRING_REPORT
-
PHYSICAL
-
PHYSICAL_REPORT
-
PREEND_DECLARATIONS
-
INFANTRY_VS_INFANTRY_COMBAT
-
END
-
END_REPORT
-
VICTORY
-
DEPLOY_MINEFIELDS
-
STARTING_SCENARIO
-
SET_ARTILLERY_AUTO_HIT_HEXES
-
VICTORY_SETUP
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isUnknown
public boolean isUnknown() -
isLounge
public boolean isLounge() -
isSelection
public boolean isSelection() -
isExchange
public boolean isExchange() -
isDeployment
public boolean isDeployment() -
isInitiative
public boolean isInitiative() -
isInitiativeReport
public boolean isInitiativeReport() -
isTargeting
public boolean isTargeting() -
isTargetingReport
Deprecated, for removal: This API element is subject to removal in a future version. -
isPremovement
public boolean isPremovement() -
isMovement
public boolean isMovement() -
isMovementReport
public boolean isMovementReport() -
isOffboard
public boolean isOffboard() -
isOffboardReport
Deprecated, for removal: This API element is subject to removal in a future version. -
isPointblankShot
public boolean isPointblankShot() -
isPreFiring
public boolean isPreFiring() -
isFiring
public boolean isFiring() -
isFiringReport
public boolean isFiringReport() -
isPhysical
public boolean isPhysical() -
isPhysicalReport
public boolean isPhysicalReport() -
isPreEndDeclarations
public boolean isPreEndDeclarations() -
isInfantryVsInfantryCombat
public boolean isInfantryVsInfantryCombat() -
isEnd
public boolean isEnd() -
isEndReport
public boolean isEndReport() -
isVictory
public boolean isVictory() -
isDeployMinefields
public boolean isDeployMinefields() -
isStartingScenario
public boolean isStartingScenario() -
isSetArtilleryAutoHitHexes
public boolean isSetArtilleryAutoHitHexes() -
isVictorySetup
public boolean isVictorySetup() -
isReport
public boolean isReport() -
isOnMap
public boolean isOnMap()Returns true when this phase shows the game map. -
usesTurns
public boolean usesTurns()- Returns:
- true if this phase has turns. If false, the phase is simply waiting for everybody to declare "done".
-
isSimultaneous
- Parameters:
game- The currentGame- Returns:
- true if this phase is simultaneous
-
isDuringOrAfter
-
isBefore
-
toString
-
localizedName
-