public interface IRobotSnapshot
Modifier and Type | Method and Description |
---|---|
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, which is unique for each robot or team participating in 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 |
getRobotIndex()
Returns the index of the robot, which is unique for the specific robot and constant during a battle.
|
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.
|
int |
getTeamIndex()
Returns the index of the team that this robot is a member of, which is unique for the specific team and constant
during a battle.
|
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 |
isSentryRobot()
Checks if this robot is a
BorderSentry . |
boolean |
isSGPaintEnabled()
Checks if RobocodeSG painting (the point (0,0) is in the upper left corner) is enabled for this robot.
|
String getName()
String getShortName()
String getVeryShortName()
String getTeamName()
int getRobotIndex()
getTeamIndex()
int getTeamIndex()
getRobotIndex()
int getContestantIndex()
getTeamIndex()
); otherwise the robot index (see getRobotIndex()
) is used instead.
This method is used for the battle results as scores are calculated for either a team of robots or individual
robot.getRobotIndex()
,
getTeamIndex()
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 isSentryRobot()
BorderSentry
.true
if this robot is a BorderSentry; 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()
Copyright © 2021 Robocode. All Rights Reserved.