IRobotSnapshot PropertiesRobocode Control API for .NET
The IRobotSnapshot type exposes the following members.
Properties

  NameDescription
Public propertyBodyColor
Contains the color of the body.
Public propertyBodyHeading
Contains the body heading of the robot in radians.
Public propertyContestantIndex
Contains the contestant index, which is unique for each robot or team participating in a battle. Note: If a team of robots is participating in a battle, this method will return the team index (see TeamIndex); otherwise the robot index (see RobotIndex) is used instead. This method is used for the battle results as scores are calculated for either a team of robots or individual robot.
Public propertyDebugProperties
Contains a snapshot of debug properties.
Public propertyEnergy
Contains the energy level of the robot.
Public propertyGunColor
Contains the color of the gun.
Public propertyGunHeading
Contains the gun heading of the robot in radians.
Public propertyGunHeat
Contains the gun heat of the robot.
Public propertyIsDroid
Flag specifying if this robot is an IDroid.
Public propertyIsPaintEnabled
Flag specifying if painting is enabled for this robot.
Public propertyIsPaintRobot
Flag specifying if this robot is an IPaintRobot.
Public propertyIsSGPaintEnabled
Flag specifying if RobocodeSG painting (the point (0,0) is in the upper left corner) is enabled for this robot.
Public propertyName
Contains the name of the robot.
Public propertyOutputStreamSnapshot
Contains a snapshot of the output print stream for this robot.
Public propertyRadarColor
Contains the color of the radar.
Public propertyRadarHeading
Contains the radar heading of the robot in radians.
Public propertyRobotIndex
Contains the index of the robot, which is unique for the specific robot and constant during a battle. Since: 1.7.4.0
Public propertyScanColor
Contains the color of the scan arc.
Public propertyScoreSnapshot
Contains a snapshot of the current score for this robot.
Public propertyShortName
Contains the short name of the robot.
Public propertyState
Contains the robot state.
Public propertyTeamIndex
Contains the index of the team that this robot is a member of, which is unique for the specific team and constant during a battle. Since: 1.7.4.0
Public propertyTeamName
Contains the name of the team, which can be the name of a robot if the contestant is not a team, but a robot.
Public propertyVelocity
Contains the velocity of the robot.
Public propertyVeryShortName
Contains the very short name of the robot.
Public propertyX
Contains the X position of the robot.
Public propertyY
Contains the Y position of the robot.
Back to Top
See Also