ScannedRobotEvent PropertiesRobocode Robot API for .NET
The ScannedRobotEvent type exposes the following members.
Properties

  NameDescription
Public propertyBearing
Returns the bearing to the robot you scanned, relative to your robot's heading, in degrees (-180 <= getBearing() < 180)
Public propertyBearingRadians
Returns the bearing to the robot you scanned, relative to your robot's heading, in radians (-PI <= getBearingRadians() < PI)
Public propertyDistance
Returns the distance to the robot (your center to his center).
Public propertyEnergy
Returns the energy of the robot.
Public propertyHeading
Returns the heading of the robot, in degrees (0 <= getHeading() < 360)
Public propertyHeadingRadians
Returns the heading of the robot, in radians (0 <= getHeading() < 2 * PI)
Public propertyIsSentryRobot
if the scanned robot is a sentry robot; otherwise.
Public propertyName
Returns the name of the robot.
Public propertyPriority
The priority of this event.

An event priority is a value from 0 - 99. The higher value, the higher priority.

The default priority is 80, but varies depending on the type of event.

(Inherited from Event.)
Public propertyTime
The time when this event occurred.
(Inherited from Event.)
Public propertyVelocity
Returns the velocity of the robot.
Back to Top
See Also