public class EnvironmentModel extends Object implements ParsedDataObserver
Modifier and Type | Class and Description |
---|---|
static class |
EnvironmentModel.Beamable |
static class |
EnvironmentModel.BefKick |
static class |
EnvironmentModel.PlayMode
EnvironmentModel.java
|
static class |
EnvironmentModel.Version
EnvironmentModel.java
Version of server.
|
Modifier and Type | Field and Description |
---|---|
static double |
GAME_TIME
The game time which is calculated when game is running, that
means not in BEFORE_KICK_OFF game mode.
|
private static EnvironmentModel |
instance |
static EnvironmentModel.PlayMode |
PLAY_MODE
Play mode of the game with possible values:
BEFORE_KICK_OFF,
PLAY_ON,
KICK_OFF_LEFT,
KICK_OFF_RIGHT,
KICK_IN_LEFT,
KICK_IN_RIGHT,
CORNER_KICK_LEFT,
CORNER_KICK_RIGHT,
GOAL_KICK_LEFT,
GOAL_KICK_RIGHT,
OFFSIDE_LEFT,
OFFSIDE_RIGHT,
GAME_OVER,
GOAL_LEFT,
GOAL_RIGHT,
FREE_KICK_LEFT,
FREE_KICK_RIGHT;
|
static double |
SIMULATION_TIME
The simulation time which is calculated since server starts.
|
static double |
TIME_STEP
Time step by which time is increased.
|
static EnvironmentModel.Version |
version |
Constructor and Description |
---|
EnvironmentModel() |
Modifier and Type | Method and Description |
---|---|
static boolean |
beamablePlayMode() |
static EnvironmentModel |
getInstance()
Returns EnvironmentModel static instance to work with it.
|
void |
processNewServerMessage(ParsedData data) |
private static EnvironmentModel instance
public static double TIME_STEP
public static double GAME_TIME
public static double SIMULATION_TIME
public static EnvironmentModel.PlayMode PLAY_MODE
public static EnvironmentModel.Version version
public static EnvironmentModel getInstance()
public void processNewServerMessage(ParsedData data)
processNewServerMessage
in interface ParsedDataObserver
public static boolean beamablePlayMode()