Condition ClassRobocode Robot API for .NET
Condition is used to define custom WaitFor(Condition) and custom events for an AdvancedRobot. The code below is taken from the sample robot named samplecs.Target. See the samplecs/Target.cs for details.
Examples

AddCustomEvent(
    new Condition("triggerhit", (c) =>
    {
        return Energy <= trigger;
    }));
WaitFor(Condition)AddCustomEvent(Condition)RemoveCustomEvent(Condition)OnCustomEvent(CustomEvent)
Inheritance Hierarchy

OnlineSystem Object
  Robocode Condition
    Robocode GunTurnCompleteCondition
    Robocode MoveCompleteCondition
    Robocode RadarTurnCompleteCondition
    Robocode TurnCompleteCondition

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

public class Condition
See Also