robocode.control.snapshot
Interface IRobotSnapshot
public interface IRobotSnapshot
Interface of a robot snapshot.
- Pavel Savara (original)
- Flemming N. Larsen (contributor)
getBodyColor
public int getBodyColor()
Returns the color of the body.
- a RGBA color value. (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue)
getBodyHeading
public double getBodyHeading()
Returns the body heading in radians.
- the body heading in radians.
getContestantIndex
public int getContestantIndex()
Returns the index of the contestant that will not be changed during a battle.
- the index of the contestant that will not be changed during a battle.
getDebugProperties
public IDebugProperty[] getDebugProperties()
Returns a list of all debug properties.
- a list of all debug properties.
getEnergy
public double getEnergy()
Returns the energy level.
getGunColor
public int getGunColor()
Returns the color of the gun.
- a RGBA color value. (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue)
getGunHeading
public double getGunHeading()
Returns the gun heading in radians.
- the gun heading in radians.
getGunHeat
public double getGunHeat()
Returns the gun heat.
getName
public String getName()
Returns the name of the robot.
getOutputStreamSnapshot
public String getOutputStreamSnapshot()
Returns a snapshot of the output print stream for this robot.
- a string containing the snapshot of the output print stream.
getRadarColor
public int getRadarColor()
Returns the color of the radar.
- a RGBA color value. (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue)
getRadarHeading
public double getRadarHeading()
Returns the radar heading in radians.
- the radar heading in radians.
getScanColor
public int getScanColor()
Returns the color of the scan arc.
- a RGBA color value. (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue)
getScoreSnapshot
public IScoreSnapshot getScoreSnapshot()
Returns snapshot current score.
getShortName
public String getShortName()
Returns the very short name of the robot.
- the very short name of the robot.
getState
public RobotState getState()
Returns the robot status.
getTeamName
public String getTeamName()
Returns the name of the team, or name of the robot if the contestant is not a team.
- the name of the team, or name of the robot if the contestant is not a team.
getVelocity
public double getVelocity()
Returns the velocity.
getVeryShortName
public String getVeryShortName()
Returns the very short name of the robot.
- the very short name of the robot.
getX
public double getX()
Returns the x coordinate of the robot.
- the x coordinate of the robot.
getY
public double getY()
Returns the y coordinate of the robot.
- the y coordinate of the robot.
isDroid
public boolean isDroid()
Returns a flag specifying if this robot is a
Droid
.
true
if this robot is a Droid; false
otherwise.
isPaintEnabled
public boolean isPaintEnabled()
Returns a flag specifying if robot's (onPaint) painting is enabled for the robot.
true
if the paintings for this robot is enabled;
false
otherwise.
isPaintRobot
public boolean isPaintRobot()
Returns a flag specifying if this robot is an
IPaintRobot
or is asking for getGraphics().
true
if this robot is a an IPaintRobot or is asking for getGraphics();
false
otherwise.
isSGPaintEnabled
public boolean isSGPaintEnabled()
Returns a flag specifying if RobocodeSG painting is enabled for the robot.
true
if RobocodeSG painting is enabled for this robot;
false
otherwise.