public enum PlayerType extends java.lang.Enum<PlayerType>
Enum Constant and Description |
---|
Closed |
Computer |
ComputerLeft |
EitherPreferComputer |
EitherPreferHuman |
Neutral |
None |
Observer |
Player |
PlayerLeft |
RescueActive |
RescuePassive |
Unknown |
Modifier and Type | Method and Description |
---|---|
static PlayerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PlayerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static PlayerType |
withId(int id) |
public static final PlayerType None
public static final PlayerType Computer
public static final PlayerType Player
public static final PlayerType RescuePassive
public static final PlayerType RescueActive
public static final PlayerType EitherPreferComputer
public static final PlayerType EitherPreferHuman
public static final PlayerType Neutral
public static final PlayerType Closed
public static final PlayerType Observer
public static final PlayerType PlayerLeft
public static final PlayerType ComputerLeft
public static final PlayerType Unknown
public static PlayerType[] values()
for (PlayerType c : PlayerType.values()) System.out.println(c);
public static PlayerType 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 nullpublic static PlayerType withId(int id)