public enum GameState extends java.lang.Enum<GameState>
Enum Constant and Description |
---|
BEFORE_KICK_OFF
The game has not started yet
|
GAME_OVER
The game is over
|
NONE
No gameState or an unknown one (should not be used!)
|
OPPONENT_CORNER_KICK
The ball left the playfield, the opponent team is allowed to kick it back
into the field from a corner
|
OPPONENT_FREE_KICK
The opponent right team got a free kick (probably because the referee
decided to do so) and may kick the ball first
|
OPPONENT_GOAL
A goal was counted for the opponent team
|
OPPONENT_GOAL_KICK
The ball left the playfield while it was near the opponent goal, and the
opponent team is allowed to kick it first
|
OPPONENT_KICK_IN
The ball left the playfield, the opponent team is allowed to kick it back
into the field
|
OPPONENT_KICK_OFF
The ball is in the center, and the opponent team is allowed to kick it
|
OPPONENT_OFFSIDE
Our team violated the offside rule and the opponent team is allowed to
kick the ball first
|
OWN_CORNER_KICK
The ball left the playfield, our team is allowed to kick it back into the
field from a corner
|
OWN_FREE_KICK
Our team got a free kick (probably because the referee decided to do so)
and may kick the ball first
|
OWN_GOAL
A goal was counted for our team
|
OWN_GOAL_KICK
The ball left the playfield while it was near the own goal, and our team
is allowed to kick it first
|
OWN_KICK_IN
The ball left the playfield, our team is allowed to kick it back into the
field
|
OWN_KICK_OFF
The ball is in the center, and our team is allowed to kick it first
|
OWN_OFFSIDE
The opponent team violated the offside rule and our team 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 |
---|---|
static GameState |
determineGameState(PlayMode playMode,
PlaySide playSide)
Determine the current game state from play mode and field side
|
static GameState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GameState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameState BEFORE_KICK_OFF
public static final GameState OWN_KICK_OFF
public static final GameState OPPONENT_KICK_OFF
public static final GameState PLAY_ON
public static final GameState OWN_KICK_IN
public static final GameState OPPONENT_KICK_IN
public static final GameState OWN_CORNER_KICK
public static final GameState OPPONENT_CORNER_KICK
public static final GameState OWN_GOAL_KICK
public static final GameState OPPONENT_GOAL_KICK
public static final GameState OWN_OFFSIDE
public static final GameState OPPONENT_OFFSIDE
public static final GameState GAME_OVER
public static final GameState OWN_GOAL
public static final GameState OPPONENT_GOAL
public static final GameState OWN_FREE_KICK
public static final GameState OPPONENT_FREE_KICK
public static final GameState NONE
public static GameState[] values()
for (GameState c : GameState.values()) System.out.println(c);
public static GameState 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