The ScannedRobotEvent type exposes the following members.
Back to Top
Returns the bearing to the robot you scanned, relative to your robot's heading, in degrees (-180 <= getBearing() < 180)
Returns the bearing to the robot you scanned, relative to your robot's heading, in radians (-PI <= getBearingRadians() < PI)
Returns the distance to the robot (your center to his center).
Returns the energy of the robot.
Returns the heading of the robot, in degrees (0 <= getHeading() < 360)
Returns the heading of the robot, in radians (0 <= getHeading() < 2 * PI)
Returns the name of the robot.
The priority of this event.(Inherited from 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.
The time when this event occurred.(Inherited from Event.)
Returns the velocity of the robot.