Enum Class GamePhase

java.lang.Object
java.lang.Enum<GamePhase>
megamek.common.enums.GamePhase
All Implemented Interfaces:
Serializable, Comparable<GamePhase>, Constable

public enum GamePhase extends Enum<GamePhase>
  • Enum Constant Details

    • UNKNOWN

      public static final GamePhase UNKNOWN
    • LOUNGE

      public static final GamePhase LOUNGE
    • SELECTION

      public static final GamePhase SELECTION
    • EXCHANGE

      public static final GamePhase EXCHANGE
    • DEPLOYMENT

      public static final GamePhase DEPLOYMENT
    • INITIATIVE

      public static final GamePhase INITIATIVE
    • INITIATIVE_REPORT

      public static final GamePhase INITIATIVE_REPORT
    • SBF_DETECTION

      public static final GamePhase SBF_DETECTION
    • SBF_DETECTION_REPORT

      public static final GamePhase SBF_DETECTION_REPORT
    • TARGETING

      public static final GamePhase TARGETING
    • TARGETING_REPORT

      public static final GamePhase TARGETING_REPORT
    • PREMOVEMENT

      public static final GamePhase PREMOVEMENT
    • MOVEMENT

      public static final GamePhase MOVEMENT
    • MOVEMENT_REPORT

      public static final GamePhase MOVEMENT_REPORT
    • OFFBOARD

      public static final GamePhase OFFBOARD
    • OFFBOARD_REPORT

      public static final GamePhase OFFBOARD_REPORT
    • POINTBLANK_SHOT

      public static final GamePhase POINTBLANK_SHOT
    • PRE_FIRING

      public static final GamePhase PRE_FIRING
    • FIRING

      public static final GamePhase FIRING
    • FIRING_REPORT

      public static final GamePhase FIRING_REPORT
    • PHYSICAL

      public static final GamePhase PHYSICAL
    • PHYSICAL_REPORT

      public static final GamePhase PHYSICAL_REPORT
    • PREEND_DECLARATIONS

      public static final GamePhase PREEND_DECLARATIONS
    • INFANTRY_VS_INFANTRY_COMBAT

      public static final GamePhase INFANTRY_VS_INFANTRY_COMBAT
    • END

      public static final GamePhase END
    • END_REPORT

      public static final GamePhase END_REPORT
    • VICTORY

      public static final GamePhase VICTORY
    • DEPLOY_MINEFIELDS

      public static final GamePhase DEPLOY_MINEFIELDS
    • STARTING_SCENARIO

      public static final GamePhase STARTING_SCENARIO
    • SET_ARTILLERY_AUTO_HIT_HEXES

      public static final GamePhase SET_ARTILLERY_AUTO_HIT_HEXES
    • VICTORY_SETUP

      public static final GamePhase VICTORY_SETUP
  • Method Details

    • values

      public static GamePhase[] 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

      public static GamePhase valueOf(String name)
      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 name
      NullPointerException - 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(since="0.51.0", forRemoval=true) public boolean 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(since="0.51.0", forRemoval=true) public boolean 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

      public boolean isSimultaneous(Game game)
      Parameters:
      game - The current Game
      Returns:
      true if this phase is simultaneous
    • isDuringOrAfter

      public boolean isDuringOrAfter(GamePhase otherPhase)
    • isBefore

      public boolean isBefore(GamePhase otherPhase)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<GamePhase>
    • localizedName

      public String localizedName()