CustomEvent Condition Property Robocode Robot API for .NET
Returns the condition that fired, causing this event to be generated. Use this to determine which condition fired, and to remove the custom event.
Examples

public void OnCustomEvent(CustomEvent evnt)
{
    if (event.Condition.Name == "mycondition")
    {
        RemoveCustomEvent(event.Condition);
        // do something else
    }
}

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

public Condition Condition { get; }

Property Value

Type: Condition
See Also