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

Examples

AddCustomEvent(
    new Condition("triggerhit", (c) =>
    {
       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.RobotInterfaces.Peer
Assembly: robocode (in robocode.dll) Version: 1.9.3.0
Syntax

void RemoveCustomEvent(
	Condition condition
)

Parameters

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