soccerclient.brain
Class StateDef
java.lang.Object
|
+--soccerclient.brain.StateDef
- public class StateDef
- extends java.lang.Object
StateDef
This class defines different states, which can occur during PlayMode PLAY_ON
- Author:
- Michael Geisser
Constructor Summary |
(package private) |
StateDef(PlayerInfo pi,
int playerNr)
creates a new StateDef object |
Method Summary |
(package private) int |
getState()
returns the current state |
(package private) boolean |
isBallTimeCurrent()
checks if information about ball is too old (less than 5 cycles) |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BALL_IN_OPPOSING_HALF
static final int BALL_IN_OPPOSING_HALF
BALL_IN_OWN_HALF
static final int BALL_IN_OWN_HALF
BALL_IN_AREA_OF_RESP
static final int BALL_IN_AREA_OF_RESP
BALL_IN_POSSESSION
static final int BALL_IN_POSSESSION
BALL_POS_UNKNOWN
static final int BALL_POS_UNKNOWN
OWN_POS_UNKNOWN
static final int OWN_POS_UNKNOWN
maxX
double maxX
minX
double minX
maxY
double maxY
minY
double minY
StateDef
StateDef(PlayerInfo pi,
int playerNr)
- creates a new
StateDef
object
- Parameters:
pi
- the PlayerInfo
objectplayerNr
- a int
specifying the player's number
getState
int getState()
- returns the current state
- Returns:
- a
int
describing the current state
isBallTimeCurrent
boolean isBallTimeCurrent()
- checks if information about ball is too old (less than 5 cycles)