IBasicRobotPeer GetDistanceRemaining Method Robocode Robot API for .NET
Returns the distance remaining in the robot's current move measured in pixels.

This call returns both positive and negative values. Positive values means that the robot is currently moving forwards. Negative values means that the robot is currently moving backwards. If the returned value is 0, the robot currently stands still.

Namespace: Robocode.RobotInterfaces.Peer
Assembly: robocode (in robocode.dll) Version: 1.9.2.0
Syntax

double GetDistanceRemaining()

Return Value

Type: OnlineDouble
See Also