RateControlRobot Execute Method Robocode Robot API for .NET
Executes any pending actions, or continues executing actions that are in process. This call returns after the actions have been started.

Note that advanced robots must call this function in order to Execute pending set* calls like e.g. VelocityRate, SetFire(Double), TurnRate etc. Otherwise, these calls will never get executed.

Any previous calls to "movement" functions outside of RateControlRobot, such as SetAhead(Double), SetTurnLeft(Double), SetTurnRadarLeftRadians(Double) etc. will be overridden when this method is called on this robot class.

Examples

In this example the robot will move while turning:
VelocityRate = 6;
TurnRate = 7;

while (true)
{
    Execute();
}

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version: 1.9.3.0
Syntax

public override void Execute()
See Also