public static enum PeasantState.ConnectionAccomplishmentType extends java.lang.Enum<PeasantState.ConnectionAccomplishmentType>
Enum Constant and Description |
---|
BOWED_DOWN
We connected to the king after a bow down.
|
DEGRADATION
We were degraded from
PrinceState to PeasantState |
FOLLOWED_THE_HEIR_TO_THE_THRONE
We connected to the Prince after the King died.
|
VOLUNTARILY
We connected voluntarily to the current king (Free to Peasant)
|
Modifier and Type | Method and Description |
---|---|
static PeasantState.ConnectionAccomplishmentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PeasantState.ConnectionAccomplishmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeasantState.ConnectionAccomplishmentType VOLUNTARILY
public static final PeasantState.ConnectionAccomplishmentType BOWED_DOWN
public static final PeasantState.ConnectionAccomplishmentType FOLLOWED_THE_HEIR_TO_THE_THRONE
public static final PeasantState.ConnectionAccomplishmentType DEGRADATION
PrinceState
to PeasantState
public static PeasantState.ConnectionAccomplishmentType[] values()
for (PeasantState.ConnectionAccomplishmentType c : PeasantState.ConnectionAccomplishmentType.values()) System.out.println(c);
public static PeasantState.ConnectionAccomplishmentType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null