Condition MembersRobocode Robot API for .NET

The Condition type exposes the following members.
Constructors

  NameDescription
Protected methodCondition 
Creates a new, unnamed Condition with the default priority, which is 80.
Protected methodCondition(String)
Creates a new Condition with the specified name, and default priority, which is 80.
Public methodCondition(ConditionTest)
Convinience constructor, allows to pass delegate to method, instead of overriding Test() method.
Public methodCondition(String, ConditionTest)
Convinience constructor, allows to pass delegate to method, instead of overriding Test() method.
Protected methodCondition(String, Int32)
Creates a new Condition with the specified name and priority. A condition priority is a value from 0 - 99. The higher value, the higher priority. The default priority is 80.
Public methodCondition(String, Int32, ConditionTest)
Convinience constructor, allows to pass delegate to method, instead of overriding Test() method.
Back to Top
Methods

  NameDescription
Public methodTest
Overriding the Test() method is the point of a Condition. The game will call your Test() function, and take action if it returns true. This is valid for both WaitFor(Condition) and AddCustomEvent(Condition)

You may not take any actions inside of Test().
Back to Top
Fields

  NameDescription
Public fieldname
The name of this condition.
Public fieldpriority
The priority of this condition. Defaults to 80.
Back to Top
Properties

  NameDescription
Public propertyName
Returns the name of this condition.
Public propertyPriority
Returns the priority of this condition. A condition priority is a value from 0 - 99. The higher value, the higher priority. The default priority is 80.
Back to Top
See Also