Enum Class KaiserEngine.Regency
- All Implemented Interfaces:
Serializable, Comparable<KaiserEngine.Regency>, Constable
- Enclosing class:
KaiserEngine
Final rating based on average starvation and land owned per inhabitant.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAverage starvation exceeds 33 percent, or land per person is below seven hectares.Average starvation is at most three percent and land per person is at least ten hectares.Below the worse tiers, but starvation exceeds three percent or land per person is below ten.Below the disastrous tier, but starvation exceeds 10 percent or land per person is below nine. -
Method Summary
Modifier and TypeMethodDescriptionstatic KaiserEngine.RegencyReturns the enum constant of this class with the specified name.static KaiserEngine.Regency[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISASTROUS
Average starvation exceeds 33 percent, or land per person is below seven hectares. -
TYRANNICAL
Below the disastrous tier, but starvation exceeds 10 percent or land per person is below nine. -
MEDIOCRE
Below the worse tiers, but starvation exceeds three percent or land per person is below ten. -
EXCELLENT
Average starvation is at most three percent and land per person is at least ten hectares.
-
-
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
-