AdvancedRobot RemoveCustomEvent Method Robocode Robot API for .NET
Removes a custom event that was previously added by calling AddCustomEvent(Condition).

Examples

// Create the condition for our custom event
Condition triggerHitCondition = new Condition("triggerhit")
{
    public bool Test()
    {
        return (Energy <= trigger);
    }
}

// Add our custom event based on our condition
AddCustomEvent(triggerHitCondition);
...
// do something with your robot
...
// Remove the custom event based on our condition
RemoveCustomEvent(triggerHitCondition);

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

public void RemoveCustomEvent(
	Condition condition
)

Parameters

condition
Type: Robocode Condition
The condition that was previous added and that must be removed now.
See Also