Class BehaviorComplex<T>
This is how to implement behaviors that have a real 'Running' status through enumerators.
Inheritance
System.Object
BehaviorComplex<T>
Assembly: Eco.Simulation.dll
Syntax
public abstract class BehaviorComplex<T> : Behavior<T> where T : IBehaviorControlled
Type Parameters
Constructors
BehaviorComplex()
Declaration
protected BehaviorComplex()
Methods
Do(T)
Declaration
public override BTStatus Do(T context)
Parameters
Type |
Name |
Description |
T |
context |
|
Returns
Overrides
Eco.Simulation.Agents.AI.Behavior<T>.Do(T)
DoStages(T)
Declaration
protected abstract IEnumerator<BTResult> DoStages(T context)
Parameters
Type |
Name |
Description |
T |
context |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<BTResult> |
|
ShouldStart(T)
Declaration
protected abstract Result ShouldStart(T context)
Parameters
Type |
Name |
Description |
T |
context |
|
Returns
ShouldStop(T)
Declaration
protected virtual Result ShouldStop(T context)
Parameters
Type |
Name |
Description |
T |
context |
|
Returns