Enum Class LatitudeBand
- All Implemented Interfaces:
Serializable,Comparable<LatitudeBand>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintstatic LatitudeBandrandom()static LatitudeBandReturns the enum constant of this class with the specified name.static LatitudeBand[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQUATORIAL
-
NORTH_TROPICAL
-
SOUTH_TROPICAL
-
NORTH_TEMPERATE
-
SOUTH_TEMPERATE
-
NORTH_POLAR
-
SOUTH_POLAR
-
-
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
-
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
- Returns:
- a uniformly random latitude band
-