public enum PlayerIndex extends java.lang.Enum<PlayerIndex>
Enum Constant and Description |
---|
Four
The fourth controller.
|
One
The first controller.
|
Three
The third controller.
|
Two
The second controller.
|
Modifier and Type | Method and Description |
---|---|
static PlayerIndex |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PlayerIndex[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerIndex One
public static final PlayerIndex Two
public static final PlayerIndex Three
public static final PlayerIndex Four
public static PlayerIndex[] values()
for (PlayerIndex c : PlayerIndex.values()) System.out.println(c);
public static PlayerIndex 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