rails.game
Enum GameDef.OrStep
java.lang.Object
java.lang.Enum<GameDef.OrStep>
rails.game.GameDef.OrStep
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<GameDef.OrStep>
- Enclosing class:
- GameDef
public static enum GameDef.OrStep
- extends java.lang.Enum<GameDef.OrStep>
OR step values
- Author:
- Erik
Method Summary |
static GameDef.OrStep |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GameDef.OrStep[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
INITIAL
public static final GameDef.OrStep INITIAL
LAY_TRACK
public static final GameDef.OrStep LAY_TRACK
LAY_TOKEN
public static final GameDef.OrStep LAY_TOKEN
CALC_REVENUE
public static final GameDef.OrStep CALC_REVENUE
PAYOUT
public static final GameDef.OrStep PAYOUT
BUY_TRAIN
public static final GameDef.OrStep BUY_TRAIN
TRADE_SHARES
public static final GameDef.OrStep TRADE_SHARES
REPAY_LOANS
public static final GameDef.OrStep REPAY_LOANS
FINAL
public static final GameDef.OrStep FINAL
DISCARD_TRAINS
public static final GameDef.OrStep DISCARD_TRAINS
values
public static GameDef.OrStep[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (GameDef.OrStep c : GameDef.OrStep.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GameDef.OrStep valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null