Show / Hide Table of Contents

Class BehaviorComplex<T>

This is how to implement behaviors that have a real 'Running' status through enumerators.

Inheritance
System.Object
Behavior<T>
BehaviorComplex<T>
Inherited Members
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>.Name
Behavior<T>.ChildrenBehaviors
Namespace: Eco.Simulation.Agents.AI
Assembly: Eco.Simulation.dll
Syntax
public abstract class BehaviorComplex<T> : Behavior<T> where T : IBehaviorControlled
Type Parameters
Name Description
T

Constructors

BehaviorComplex()

Declaration
protected BehaviorComplex()

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)

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
Type Description
Result

ShouldStop(T)

Declaration
protected virtual Result ShouldStop(T context)
Parameters
Type Name Description
T context
Returns
Type Description
Result
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾