Biter

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.
 
Fields inherited from class biter.PlayerInfo
team, uniformNumber
 
Fields inherited from class biter.DynamicObjectInfo
position
 
Fields inherited from class biter.ObjectInfo
bodyDir, dirChng, direction, distance, distChng, gotChanges, headDir, objectName
 
Fields inherited from class biter.Input
realTime, timeStamp
 
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.PlayerInfo
equals, getTeam, getUniformNumber, setTeam, setUniformNumber
 
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 biter.Input
getRealTime, getTimeStamp, setTimeStamp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

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.
Constructor Detail

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 team
uniformNumber - the player's uniformNumber
side - 'l' or 'r' for the player's side of the field
Method Detail

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.

Biter

From the Biter project.