Class BehaviorSelector<T>
Executes children until one succeeds. Only fails if all children fail. Returns running if any child is running.
Inheritance
System.Object
BehaviorSelector<T>
Assembly: Eco.Simulation.dll
Syntax
public class BehaviorSelector<T> : BehaviorTree<T> where T : IBehaviorControlled
Type Parameters
Constructors
BehaviorSelector(String, IEnumerable<Behavior<T>>)
Declaration
public BehaviorSelector(string name, IEnumerable<Behavior<T>> children)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Collections.Generic.IEnumerable<Behavior<T>> |
children |
|
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)