Enum Constant and Description |
---|
BEFORE_KICK_OFF
The game has not started yet, Set in humanoid games
|
CORNER_KICK_LEFT
The ball left the playfield, the team on the left is allowed to kick it
back into the field from a corner
|
CORNER_KICK_RIGHT
The ball left the playfield, the team on the right is allowed to kick it
back into the field from a corner
|
FREE_KICK_LEFT
The left team got a free kick (probably because the referee decided to do
so) and may kick the ball first
|
FREE_KICK_RIGHT
The right team got a free kick (probably because the referee decided to do
so) and may kick the ball first
|
GAME_OVER
The game is over
|
GOAL_KICK_LEFT
The ball left the playfield while it was near the left goal, and the left
team is allowed to kick it first
|
GOAL_KICK_RIGHT
The ball left the playfield while it was near the right goal, and the
right team is allowed to kick it first
|
GOAL_LEFT
A goal was counted for the team on the left
|
GOAL_RIGHT
A goal was counted for the team on the right
|
INITIAL
Humanoid Initial State before the game
|
KICK_IN_LEFT
The ball left the playfield, the team on the left is allowed to kick it
back into the field
|
KICK_IN_RIGHT
The ball left the playfield, the team on the right is allowed to kick it
back into the field
|
KICK_OFF_LEFT
The ball is in the center, and the team on the left side is allowed to
kick it first
|
KICK_OFF_RIGHT
The ball is in the center, and the team on the right side is allowed to
kick it first
|
NONE
No playmode or an unknown one (should not be used!)
|
OFFSIDE_LEFT
The team on the right violated the offside rule and the team on the left
is allowed to kick the ball first
|
OFFSIDE_RIGHT
The team on the left violated the offside rule and the team on the right
is allowed to kick the ball first
|
PLAY_ON
The game is procesing normally, no special rules are in place
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getServerString()
Convert a PlayMode to a string.
|
static PlayMode |
parsePlayMode(java.lang.String playModeString)
Convert a play mode into an enum
|
static PlayMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PlayMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayMode INITIAL
public static final PlayMode BEFORE_KICK_OFF
public static final PlayMode KICK_OFF_LEFT
public static final PlayMode KICK_OFF_RIGHT
public static final PlayMode PLAY_ON
public static final PlayMode KICK_IN_LEFT
public static final PlayMode KICK_IN_RIGHT
public static final PlayMode CORNER_KICK_LEFT
public static final PlayMode CORNER_KICK_RIGHT
public static final PlayMode GOAL_KICK_LEFT
public static final PlayMode GOAL_KICK_RIGHT
public static final PlayMode OFFSIDE_LEFT
public static final PlayMode OFFSIDE_RIGHT
public static final PlayMode GAME_OVER
public static final PlayMode GOAL_LEFT
public static final PlayMode GOAL_RIGHT
public static final PlayMode FREE_KICK_LEFT
public static final PlayMode FREE_KICK_RIGHT
public static final PlayMode NONE
public static PlayMode[] values()
for (PlayMode c : PlayMode.values()) System.out.println(c);
public static PlayMode 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 PlayMode parsePlayMode(java.lang.String playModeString)
playModeString
- Play mode stringpublic java.lang.String getServerString()