public static enum Player.Stance extends java.lang.Enum<Player.Stance>
| Enum Constant and Description |
|---|
ALLIANCE |
CEASE_FIRE |
PEACE |
UNCONTACTED |
WAR |
| Modifier and Type | Method and Description |
|---|---|
private void |
badStance() |
private void |
badTransition(Player.Stance newStance) |
java.lang.String |
getKey()
Gets a key for this stance.
|
StringTemplate |
getLabel()
Get a label for this stance.
|
Player.Stance |
getStanceFromTension(Tension tension)
Check whether tension has changed enough to merit a stance
change.
|
int |
getTensionModifier(Player.Stance newStance)
A stance change is about to happen.
|
static Player.Stance |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Player.Stance[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Player.Stance UNCONTACTED
public static final Player.Stance ALLIANCE
public static final Player.Stance PEACE
public static final Player.Stance CEASE_FIRE
public static final Player.Stance WAR
public static Player.Stance[] values()
for (Player.Stance c : Player.Stance.values()) System.out.println(c);
public static Player.Stance 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 nullprivate void badStance()
private void badTransition(Player.Stance newStance)
public Player.Stance getStanceFromTension(Tension tension)
tension - The Tension to check.Stance appropriate to the tension level.public int getTensionModifier(Player.Stance newStance) throws java.lang.IllegalStateException
newStance - The new Stance.java.lang.IllegalStateExceptionpublic java.lang.String getKey()
public StringTemplate getLabel()
StringTemplate for this stance.