|
Biter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--biter.Input | +--biter.SensorInput | +--biter.SenseBody
A class that contains information received from a sense_body message.
Field Summary | |
private int |
dashCount
The number of dash messages sent by the player. |
private double |
effort
The player's Effort. |
private int |
headDirection
The player's head direction. |
private int |
kickCount
The number of kick messages sent by the player. |
private int |
sayCount
The number of say messages sent by the player. |
private double |
speed
Estimate of the player's speed. |
private double |
stamina
The player's Stamina. |
private int |
turnCount
The number of turn messages sent by the player. |
private int |
turnNeckCount
The number of turn_neck messages sent by the player. |
private String |
viewQuality
The ViewQuality. |
private String |
viewWidth
The ViewWidth. |
Fields inherited from class biter.Input |
realTime,
timeStamp |
Constructor Summary | |
SenseBody()
A simple constructor that only initializes the timeStamp. |
|
SenseBody(String data)
|
|
SenseBody(String data,
long timeReceived)
|
Method Summary | |
int |
getDashCount()
|
double |
getEffort()
|
int |
getHeadDirection()
|
int |
getKickCount()
|
int |
getSayCount()
|
double |
getSpeed()
|
double |
getStamina()
|
int |
getTurnCount()
|
int |
getTurnNeckCount()
|
String |
getViewQuality()
|
String |
getViewWidth()
|
private void |
parse(String data)
Parses information in a 'sense_body' message. |
void |
setDashCount(int dashCount)
|
void |
setEffort(double effort)
|
void |
setHeadDirection(int headDirection)
|
void |
setKickCount(int kickCount)
|
void |
setSayCount(int sayCount)
|
void |
setSpeed(double speed)
|
void |
setStamina(double stamina)
|
void |
setTurnCount(int turnCount)
|
void |
setTurnNeckCount(int turnNeckCount)
|
void |
setViewQuality(String viewQuality)
|
void |
setViewWidth(String viewWidth)
|
String |
toString()
Converts the information in the class into readable output. |
Methods inherited from class biter.Input |
getRealTime,
getTimeStamp,
setTimeStamp |
Methods inherited from class java.lang.Object |
|
Field Detail |
private String viewQuality
private String viewWidth
private double stamina
private double effort
private double speed
private int headDirection
private int kickCount
private int dashCount
private int turnCount
private int sayCount
private int turnNeckCount
Constructor Detail |
public SenseBody()
public SenseBody(String data, long timeReceived)
public SenseBody(String data)
Method Detail |
private void parse(String data)
public String toString()
public void setViewQuality(String viewQuality)
public void setViewWidth(String viewWidth)
public void setStamina(double stamina)
public void setEffort(double effort)
public void setSpeed(double speed)
public void setHeadDirection(int headDirection)
public void setKickCount(int kickCount)
public void setDashCount(int dashCount)
public void setTurnCount(int turnCount)
public void setSayCount(int sayCount)
public void setTurnNeckCount(int turnNeckCount)
public String getViewQuality()
public String getViewWidth()
public double getStamina()
public double getEffort()
public double getSpeed()
public int getHeadDirection()
public int getKickCount()
public int getDashCount()
public int getTurnCount()
public int getSayCount()
public int getTurnNeckCount()
|
Biter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |