The RobotStatus type exposes the following members.
Back to Top
Properties
Name  Description  

DistanceRemaining 
Returns the distance remaining in the robot's current move measured in
pixels.
This call returns both positive and negative values.
Positive values means that the robot is currently moving forwards.
Negative values means that the robot is currently moving backwards.
 
Energy 
Returns the robot's current energy.
 
GunHeading 
Returns the direction that the robot's gun is facing, in degrees.
The value returned will be between 0 and 360 (is excluded).
Note that the heading in Robocode is like a compass, where 0 means North,
90 means East, 180 means South, and 270 means West.
 
GunHeadingRadians 
Returns the direction that the robot's gun is facing, in radians.
The value returned will be between 0 and 2 * PI (is excluded).
Note that the heading in Robocode is like a compass, where 0 means North,
PI / 2 means East, PI means South, and 3 * PI / 2 means West.
 
GunHeat 
Returns the current heat of the gun. The gun cannot Fire unless this is
0. (Calls to Fire will succeed, but will not actually Fire unless
GetGunHeat() == 0).
The amount of gun heat generated when the gun is fired is
1 + (firePower / 5). Each turn the gun heat drops by the amount returned
by GunCoolingRate, which is a battle setup.
Note that all guns are "hot" at the start of each round, where the gun
heat is 3.
 
GunTurnRemaining 
Returns the angle remaining in the gun's turn, in degrees.
This call returns both positive and negative values.
Positive values means that the gun is currently turning to the right.
Negative values means that the gun is currently turning to the left.
 
GunTurnRemainingRadians 
Returns the angle remaining in the gun's turn, in radians.
This call returns both positive and negative values.
Positive values means that the gun is currently turning to the right.
Negative values means that the gun is currently turning to the left.
 
Heading 
Returns the direction that the robot's body is facing, in degrees.
The value returned will be between 0 and 360 (is excluded).
Note that the heading in Robocode is like a compass, where 0 means North,
90 means East, 180 means South, and 270 means West.
 
HeadingRadians 
Returns the direction that the robot's body is facing, in radians.
The value returned will be between 0 and 2 * PI (is excluded).
Note that the heading in Robocode is like a compass, where 0 means North,
PI / 2 means East, PI means South, and 3 * PI / 2 means West.
 
NumRounds 
Returns the number of rounds in the current battle.
 
NumSentries 
Returns how many sentry robots that are left in the current round.
 
Others 
Returns how many opponents that are left in the current round.
 
RadarHeading 
Returns the direction that the robot's radar is facing, in degrees.
The value returned will be between 0 and 360 (is excluded).
Note that the heading in Robocode is like a compass, where 0 means North,
90 means East, 180 means South, and 270 means West.
 
RadarHeadingRadians 
Returns the direction that the robot's radar is facing, in radians.
The value returned will be between 0 and 2 * PI (is excluded).
Note that the heading in Robocode is like a compass, where 0 means North,
PI / 2 means East, PI means South, and 3 * PI / 2 means West.
 
RadarTurnRemaining 
Returns the angle remaining in the radar's turn, in degrees.
This call returns both positive and negative values.
Positive values means that the radar is currently turning to the right.
Negative values means that the radar is currently turning to the left.
 
RadarTurnRemainingRadians 
Returns the angle remaining in the radar's turn, in radians.
This call returns both positive and negative values.
Positive values means that the radar is currently turning to the right.
Negative values means that the radar is currently turning to the left.
 
RoundNum 
Returns the current round number (0 to NumRounds  1) of
the battle.
 
Time 
Returns the game time of the round, where the time is equal to the current turn in the round.
 
TurnRemaining 
Returns the angle remaining in the robots's turn, in degrees.
This call returns both positive and negative values.
Positive values means that the robot is currently turning to the right.
Negative values means that the robot is currently turning to the left.
 
TurnRemainingRadians 
Returns the angle remaining in the robots's turn, in radians.
This call returns both positive and negative values.
Positive values means that the robot is currently turning to the right.
Negative values means that the robot is currently turning to the left.
 
Velocity 
Returns the velocity of the robot measured in pixels/turn.
The maximum velocity of a robot is defined by MAX_VELOCITY
(8 pixels / turn).
 
X 
Returns the X position of the robot. (0,0) is at the bottom left of the
battlefield.
 
Y 
Returns the Y position of the robot. (0,0) is at the bottom left of the
battlefield.

See Also