Enum Class LatitudeBand

java.lang.Object
java.lang.Enum<LatitudeBand>
mekhq.campaign.digitalGM.stratCon.sectorGeneration.LatitudeBand
All Implemented Interfaces:
Serializable, Comparable<LatitudeBand>, Constable

public enum LatitudeBand extends Enum<LatitudeBand>
The latitude band a StratCon sector sits in, used by improved sector generation to bias a sector's temperature away from the planet's equatorial baseline. Bands grow progressively colder toward the poles; the northern and southern halves of each band share the same temperature offset.
Since:
0.51.01
  • Enum Constant Details

    • EQUATORIAL

      public static final LatitudeBand EQUATORIAL
    • NORTH_TROPICAL

      public static final LatitudeBand NORTH_TROPICAL
    • SOUTH_TROPICAL

      public static final LatitudeBand SOUTH_TROPICAL
    • NORTH_TEMPERATE

      public static final LatitudeBand NORTH_TEMPERATE
    • SOUTH_TEMPERATE

      public static final LatitudeBand SOUTH_TEMPERATE
    • NORTH_POLAR

      public static final LatitudeBand NORTH_POLAR
    • SOUTH_POLAR

      public static final LatitudeBand SOUTH_POLAR
  • Method Details

    • values

      public static LatitudeBand[] 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 LatitudeBand 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
    • getTemperatureOffset

      public int getTemperatureOffset()
      Returns:
      the temperature offset in degrees Celsius applied to the planet's equatorial temperature for a sector in this band (zero at the equator, progressively more negative toward the poles)
    • random

      public static LatitudeBand random()
      Returns:
      a uniformly random latitude band