Class BehaviorBasic<T>
Leaf-node behavior that runs a given function.
Inheritance
System.Object
BehaviorBasic<T>
Assembly: Eco.Simulation.dll
Syntax
public class BehaviorBasic<T> : GenericBehavior<T> where T : IBehaviorControlled
Type Parameters
Constructors
BehaviorBasic(String, Func<Behavior<T>, T, BTResult>)
Declaration
public BehaviorBasic(string name, Func<Behavior<T>, T, BTResult> func)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Func<Behavior<T>, T, BTResult> |
func |
|
Fields
Func
Declaration
public Func<Behavior<T>, T, BTResult> Func
Field Value
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)