Enum Class KonquestRelationshipType
java.lang.Object
java.lang.Enum<KonquestRelationshipType>
com.github.rumsfield.konquest.api.model.KonquestRelationshipType
- All Implemented Interfaces:
Serializable
,Comparable<KonquestRelationshipType>
,Constable
The types of player relationships in Konquest.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlayer/territory are in allied kingdomsPlayer/territory is barbarianPlayer/territory are in kingdoms at warPlayer/territory are in the same kingdomTerritory has no kingdom (ruin, sanctuary, etc)Player/territory are in kingdoms at peacePlayer/territory are in trading kingdoms -
Method Summary
Modifier and TypeMethodDescriptionstatic KonquestRelationshipType
Returns the enum constant of this class with the specified name.static KonquestRelationshipType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BARBARIAN
Player/territory is barbarian -
NEUTRAL
Territory has no kingdom (ruin, sanctuary, etc) -
FRIENDLY
Player/territory are in the same kingdom -
ENEMY
Player/territory are in kingdoms at war -
PEACEFUL
Player/territory are in kingdoms at peace -
TRADE
Player/territory are in trading kingdoms -
ALLY
Player/territory are in allied kingdoms
-
-
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
-