Package megamek.client.ratgenerator
Enum Class GenerationContext.Source
- All Implemented Interfaces:
Serializable,Comparable<GenerationContext.Source>,Constable
- Enclosing class:
GenerationContext
Which generator a force came from.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Force Generator tab: knows everything and builds its own structure.The Formation tab: knows faction, command, year and rating, plus a formation type.The RAT Generator tab: knows faction, command, year and rating.A generator that knows none of this - the context is a default, not a choice. -
Method Summary
Modifier and TypeMethodDescriptionstatic GenerationContext.SourceReturns the enum constant of this class with the specified name.static GenerationContext.Source[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RAT_GENERATOR
The RAT Generator tab: knows faction, command, year and rating. -
FORMATION_BUILDER
The Formation tab: knows faction, command, year and rating, plus a formation type. -
FORCE_GENERATOR
The Force Generator tab: knows everything and builds its own structure. -
UNSPECIFIED
A generator that knows none of this - the context is a default, not a choice.
-
-
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
-