Enum Class GenerationContext.Source

java.lang.Object
java.lang.Enum<GenerationContext.Source>
megamek.client.ratgenerator.GenerationContext.Source
All Implemented Interfaces:
Serializable, Comparable<GenerationContext.Source>, Constable
Enclosing class:
GenerationContext

public static enum GenerationContext.Source extends Enum<GenerationContext.Source>
Which generator a force came from.
  • Enum Constant Details

    • RAT_GENERATOR

      public static final GenerationContext.Source RAT_GENERATOR
      The RAT Generator tab: knows faction, command, year and rating.
    • FORMATION_BUILDER

      public static final GenerationContext.Source FORMATION_BUILDER
      The Formation tab: knows faction, command, year and rating, plus a formation type.
    • FORCE_GENERATOR

      public static final GenerationContext.Source FORCE_GENERATOR
      The Force Generator tab: knows everything and builds its own structure.
    • UNSPECIFIED

      public static final GenerationContext.Source UNSPECIFIED
      A generator that knows none of this - the context is a default, not a choice.
  • Method Details

    • values

      public static GenerationContext.Source[] 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 GenerationContext.Source 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