Enum Class BridgeConstruction.BridgeRepairIssue

java.lang.Object
java.lang.Enum<BridgeConstruction.BridgeRepairIssue>
megamek.common.board.BridgeConstruction.BridgeRepairIssue
All Implemented Interfaces:
Serializable, Comparable<BridgeConstruction.BridgeRepairIssue>, Constable
Enclosing class:
BridgeConstruction

public static enum BridgeConstruction.BridgeRepairIssue extends Enum<BridgeConstruction.BridgeRepairIssue>
The reason a hex is or is not a valid bridge-repair site, so callers can explain a rejection to the player. Repairing a destroyed bridge section is an unofficial option (not part of any published ruleset): a Bridge-Building Engineer platoon refills one missing hex of an existing bridge, working from an adjacent surviving span or bank. See BridgeConstruction.bridgeRepairIssue(megamek.common.board.Board, megamek.common.board.Coords, int).
  • Enum Constant Details

  • Method Details

    • values

      public static BridgeConstruction.BridgeRepairIssue[] 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 BridgeConstruction.BridgeRepairIssue 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