biter
Class SelfInfo
java.lang.Object
|
+--biter.Input
|
+--biter.SensorInput
|
+--biter.ObjectInfo
|
+--biter.DynamicObjectInfo
|
+--biter.PlayerInfo
|
+--biter.SelfInfo
- public class SelfInfo
- extends PlayerInfo
- Version:
- $Revision: 1.6 $, $Date: 2001/02/27 22:24:31 $
- Author:
- Shaun P. Wood
Field Summary |
private SenseBody |
sense
The information from the latest 'sense_body' message. |
private char |
side
The side of the field the player plays on. |
Constructor Summary |
SelfInfo(String team,
int uniformNumber,
char side)
Constructs a new SelfInfo object with
the given data. |
Method Summary |
SenseBody |
getSense()
Gets the latest 'sense_body' information. |
char |
getSide()
Gets the side of the field. |
void |
setSense(SenseBody sense)
Updates sense to the current 'sense_body' information. |
Methods inherited from class biter.DynamicObjectInfo |
doTurn,
getAbsoluteFieldPosition,
getPosition,
getPredictedFieldPosition,
moveToNextPosition,
moveToNextPosition,
resetDistDir,
setAbsoluteFieldPosition,
setLocationOnly,
setNextPosition,
setPredictedFieldPosition,
setVector,
setVector,
toMessage,
toString |
Methods inherited from class biter.ObjectInfo |
addToDirection,
compareTo,
getBodyDir,
getDirChng,
getDirection,
getDistance,
getDistChng,
getHeadDir,
getObjectName,
isGotChanges,
setBodyDir,
setDirChng,
setDirection,
setDistance,
setDistChng,
setGotChanges,
setHeadDir,
setObjectName |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
side
private char side
- The side of the field the player plays on.
'l' or 'r'.
sense
private SenseBody sense
- The information from the latest 'sense_body' message.
SelfInfo
public SelfInfo(String team,
int uniformNumber,
char side)
- Constructs a new SelfInfo object with
the given data. This constructor is called
from within the constructor of the GlobalMemory object
to create a new "self".
- Parameters:
team
- the name of the player's teamuniformNumber
- the player's uniformNumberside
- 'l' or 'r' for the player's side of the field
getSide
public char getSide()
- Gets the side of the field.
getSense
public SenseBody getSense()
- Gets the latest 'sense_body' information.
setSense
public void setSense(SenseBody sense)
- Updates sense to the current 'sense_body' information.
From the Biter project.