Package megamek.common.equipment
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnly once a unit carrying the reading leaves over its home edge on the exit turn or later (the default).The moment a scan succeeds, and nothing takes it back.The moment a scan succeeds, but the points are lost again if the scout is destroyed or captured before it leaves. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ObjectiveScoringScheme.ScanPayout[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ON_SCAN
The moment a scan succeeds, and nothing takes it back. -
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
Only once a unit carrying the reading leaves over its home edge on the exit turn or later (the default).
-
-
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
-