Show / Hide Table of Contents

Class BehaviorBasic<T>

Leaf-node behavior that runs a given function.

Inheritance
System.Object
Behavior<T>
GenericBehavior<T>
BehaviorBasic<T>
Inherited Members
GenericBehavior<T>.Name
Behavior<T>.Fail(IBehaviorControlled, String)
Behavior<T>.Success(IBehaviorControlled, String)
Behavior<T>.RunningChanged(IBehaviorControlled, String)
Behavior<T>.RunningUnchanged(IBehaviorControlled, String)
Behavior<T>.Fail(IBehaviorControlled, Func<String>)
Behavior<T>.Success(IBehaviorControlled, Func<String>)
Behavior<T>.RunningChanged(IBehaviorControlled, Func<String>)
Behavior<T>.RunningUnchanged(IBehaviorControlled, Func<String>)
Behavior<T>.Fail(IBehaviorControlled)
Behavior<T>.Success(IBehaviorControlled)
Behavior<T>.RunningChanged(IBehaviorControlled)
Behavior<T>.RunningUnchanged(IBehaviorControlled)
Behavior<T>.Status(Boolean, IBehaviorControlled, String, String)
Behavior<T>.Status(BTStatus, IBehaviorControlled)
Behavior<T>.Status(BTStatus, IBehaviorControlled, String)
Behavior<T>.Status(BTStatus, IBehaviorControlled, Func<String>)
Behavior<T>.ChildrenBehaviors
Namespace: Eco.Simulation.Agents.AI
Assembly: Eco.Simulation.dll
Syntax
public class BehaviorBasic<T> : GenericBehavior<T> where T : IBehaviorControlled
Type Parameters
Name Description
T

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
Type Description
System.Func<Behavior<T>, T, BTResult>

Methods

Do(T)

Declaration
public override BTStatus Do(T context)
Parameters
Type Name Description
T context
Returns
Type Description
BTStatus
Overrides
Eco.Simulation.Agents.AI.Behavior<T>.Do(T)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾