public class GameStatePerceptor extends Perceptor implements IGameStatePerceptor
Constructor and Description |
---|
GameStatePerceptor()
Default constructor, initializes time to 0.00 and PlayMode to "unknown"
|
GameStatePerceptor(float time,
java.lang.String playmode,
java.lang.String teamSide,
TeamColor teamColor,
int unum,
int scoreLeft,
int scoreRight)
Assignment constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAgentNumber()
Get agent number name
|
java.lang.String |
getPlaymode()
Get Playmode
|
int |
getScoreLeft()
Get the score of the left team
|
int |
getScoreRight()
Get the score of the right team
|
TeamColor |
getTeamColor() |
java.lang.String |
getTeamSide()
Get team name
|
float |
getTime()
Get time
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public GameStatePerceptor()
public GameStatePerceptor(float time, java.lang.String playmode, java.lang.String teamSide, TeamColor teamColor, int unum, int scoreLeft, int scoreRight)
time
- Timeplaymode
- Playmodeteam
- Team nameunum
- Agent numberscoreLeft
- scoreRight
- public java.lang.String getPlaymode()
IGameStatePerceptor
getPlaymode
in interface IGameStatePerceptor
public float getTime()
IGameStatePerceptor
getTime
in interface IGameStatePerceptor
public java.lang.String getTeamSide()
IGameStatePerceptor
getTeamSide
in interface IGameStatePerceptor
public TeamColor getTeamColor()
getTeamColor
in interface IGameStatePerceptor
public int getAgentNumber()
IGameStatePerceptor
getAgentNumber
in interface IGameStatePerceptor
public int getScoreLeft()
IGameStatePerceptor
getScoreLeft
in interface IGameStatePerceptor
public int getScoreRight()
IGameStatePerceptor
getScoreRight
in interface IGameStatePerceptor