|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRobotSnapshot
Interface of a robot snapshot at a specific time in a battle.
Method Summary | |
---|---|
int |
getBodyColor()
Returns the color of the body. |
double |
getBodyHeading()
Returns the body heading of the robot in radians. |
int |
getContestantIndex()
Returns the contestant index of the robot, which is constant during a battle. |
IDebugProperty[] |
getDebugProperties()
Returns a snapshot of debug properties. |
double |
getEnergy()
Returns the energy level of the robot. |
int |
getGunColor()
Returns the color of the gun. |
double |
getGunHeading()
Returns the gun heading of the robot in radians. |
double |
getGunHeat()
Returns the gun heat of the robot. |
String |
getName()
Returns the name of the robot. |
String |
getOutputStreamSnapshot()
Returns a snapshot of the output print stream for this robot. |
int |
getRadarColor()
Returns the color of the radar. |
double |
getRadarHeading()
Returns the radar heading of the robot in radians. |
int |
getScanColor()
Returns the color of the scan arc. |
IScoreSnapshot |
getScoreSnapshot()
Returns a snapshot of the current score for this robot. |
String |
getShortName()
Returns the short name of the robot. |
RobotState |
getState()
Returns the robot state. |
String |
getTeamName()
Returns the name of the team, which can be the name of a robot if the contestant is not a team, but a robot. |
double |
getVelocity()
Returns the velocity of the robot. |
String |
getVeryShortName()
Returns the very short name of the robot. |
double |
getX()
Returns the X position of the robot. |
double |
getY()
Returns the Y position of the robot. |
boolean |
isDroid()
Checks if this robot is a Droid . |
boolean |
isPaintEnabled()
Checks if painting is enabled for this robot. |
boolean |
isPaintRobot()
Checks if this robot is a IPaintRobot or is invoking getGraphics() |
boolean |
isSGPaintEnabled()
Checks if RobocodeSG painting (the point (0,0) is in the upper left corner) is enabled for this robot. |
Method Detail |
---|
String getName()
String getShortName()
String getVeryShortName()
String getTeamName()
int getContestantIndex()
RobotState getState()
double getEnergy()
double getVelocity()
double getBodyHeading()
double getGunHeading()
double getRadarHeading()
double getGunHeat()
double getX()
double getY()
int getBodyColor()
Color.getRGB()
int getGunColor()
Color.getRGB()
int getRadarColor()
Color.getRGB()
int getScanColor()
Color.getRGB()
boolean isDroid()
Droid
.
true
if this robot is a Droid; false
otherwise.boolean isPaintRobot()
IPaintRobot
or is invoking getGraphics()
true
if this robot is a painting; false
otherwise.boolean isPaintEnabled()
true
if painting is enabled for this robot; false
otherwise.boolean isSGPaintEnabled()
true
if RobocodeSG painting is enabled for this robot; false
otherwise.IDebugProperty[] getDebugProperties()
String getOutputStreamSnapshot()
IScoreSnapshot getScoreSnapshot()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |