public interface IGlobalMap extends ISoccerPitchDescription, ISubscribe<IGlobalMap>
Modifier and Type | Method and Description |
---|---|
boolean |
detach(IObserver<IGlobalMap> observer)
Detaches the passed observer to this connection
|
IMoveableObject |
getBall()
Get a reference to the ball object
|
IFieldLine |
getFieldLine(java.lang.String name) |
java.util.Collection<IFieldLine> |
getFieldLines()
Get a list of all visible field lines
|
GameState |
getGameState()
Get the current play mode
|
float |
getGameTime()
Get the running time of the current game
|
float |
getGlobalTime()
Get the current global time
|
int |
getGoalsTheyScored()
Get the number of goals the opponent team scored
|
int |
getGoalsWeScored()
Get the number of goals our own team scored
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getHomePosition()
Get home position for this agent in conjunction with the current game
state
|
ILandmark |
getLandmark(java.lang.String name) |
double |
getLandmarkError()
Calculate the average error between known and calculated position
|
java.util.Collection<ILandmark> |
getLandmarks()
Get a list of all visible landmarks
|
int |
getServerVersion() |
IThisPlayer |
getThisPlayer()
Get a reference to the player object of this player
|
IPlayer |
getVisiblePlayer(int id,
boolean ownTeam) |
java.util.List<IPlayer> |
getVisiblePlayers()
Get a list of all visible players
|
void |
logSituation(int which)
Writes out current situation information.
|
boolean |
update(IPerception perception)
Called to trigger a update of the AgentModel based on the given perception
object.
|
centerCircleRadius, fieldHalfLength, fieldHalfWith, getOtherGoalPosition, getOwnGoalPosition, goalHalfWith, goalHeight, isInCenterCircleArea, isInOtherPenaltyArea, isInOwnHalf, isInOwnPenaltyArea, isInSoccerPitchArea, penaltyHalfLength, penaltyWith
attach
boolean update(IPerception perception)
perception
- the PerceptionIMoveableObject getBall()
java.util.Collection<ILandmark> getLandmarks()
ILandmark getLandmark(java.lang.String name)
name
- the name of the landmarkdouble getLandmarkError()
java.util.Collection<IFieldLine> getFieldLines()
IFieldLine getFieldLine(java.lang.String name)
name
- the name of the field linejava.util.List<IPlayer> getVisiblePlayers()
IThisPlayer getThisPlayer()
float getGlobalTime()
float getGameTime()
GameState getGameState()
org.apache.commons.math3.geometry.euclidean.threed.Vector3D getHomePosition()
int getGoalsWeScored()
int getGoalsTheyScored()
int getServerVersion()
boolean detach(IObserver<IGlobalMap> observer)
observer
- the observer that is no longer interested in new messagesIPlayer getVisiblePlayer(int id, boolean ownTeam)
id
- the player's number (1-11)ownTeam
- true if we want the player of our own teamvoid logSituation(int which)
which
- allows to indicate different situations