Enum Class ObjectiveScoringScheme.ScanPayout

java.lang.Object
java.lang.Enum<ObjectiveScoringScheme.ScanPayout>
megamek.common.equipment.ObjectiveScoringScheme.ScanPayout
All Implemented Interfaces:
Serializable, Comparable<ObjectiveScoringScheme.ScanPayout>, Constable
Enclosing class:
ObjectiveScoringScheme

public static enum ObjectiveScoringScheme.ScanPayout extends Enum<ObjectiveScoringScheme.ScanPayout>
When a SCAN point pays its victory points; the player chooses this at game setup.
  • Enum Constant Details

    • ON_SCAN

      public static final ObjectiveScoringScheme.ScanPayout ON_SCAN
      The moment a scan succeeds, and nothing takes it back.
    • ON_SCAN_UNTIL_LOST

      public static final ObjectiveScoringScheme.ScanPayout ON_SCAN_UNTIL_LOST
      The moment a scan succeeds, but the points are lost again if the scout is destroyed or captured before it leaves.
    • ON_EXIT

      public static final ObjectiveScoringScheme.ScanPayout ON_EXIT
      Only once a unit carrying the reading leaves over its home edge on the exit turn or later (the default).
  • Method Details

    • values

      public static ObjectiveScoringScheme.ScanPayout[] 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 ObjectiveScoringScheme.ScanPayout 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