Show / Hide Table of Contents

Class Behavior<T>

Inheritance
System.Object
Behavior<T>
BehaviorComplex<T>
GenericBehavior<T>
Namespace: Eco.Simulation.Agents.AI
Assembly: Eco.Simulation.dll
Syntax
public abstract class Behavior<T> : Object where T : IBehaviorControlled
Type Parameters
Name Description
T

Constructors

Behavior()

Declaration
public Behavior()

Properties

ChildrenBehaviors

Declaration
public virtual IEnumerable<Behavior<T>> ChildrenBehaviors { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<Behavior<T>>

Name

Declaration
public virtual string Name { get; }
Property Value
Type Description
System.String

Methods

Do(T)

Declaration
public abstract BTStatus Do(T context)
Parameters
Type Name Description
T context
Returns
Type Description
BTStatus

Fail(IBehaviorControlled)

Declaration
public BTStatus Fail(IBehaviorControlled context)
Parameters
Type Name Description
IBehaviorControlled context
Returns
Type Description
BTStatus

Fail(IBehaviorControlled, Func<String>)

Declaration
public BTStatus Fail(IBehaviorControlled context, Func<string> msg)
Parameters
Type Name Description
IBehaviorControlled context
System.Func<System.String> msg
Returns
Type Description
BTStatus

Fail(IBehaviorControlled, String)

Declaration
public BTStatus Fail(IBehaviorControlled context, string msg)
Parameters
Type Name Description
IBehaviorControlled context
System.String msg
Returns
Type Description
BTStatus

RunningChanged(IBehaviorControlled)

Declaration
public BTStatus RunningChanged(IBehaviorControlled context)
Parameters
Type Name Description
IBehaviorControlled context
Returns
Type Description
BTStatus

RunningChanged(IBehaviorControlled, Func<String>)

Declaration
public BTStatus RunningChanged(IBehaviorControlled context, Func<string> msg)
Parameters
Type Name Description
IBehaviorControlled context
System.Func<System.String> msg
Returns
Type Description
BTStatus

RunningChanged(IBehaviorControlled, String)

Declaration
public BTStatus RunningChanged(IBehaviorControlled context, string msg)
Parameters
Type Name Description
IBehaviorControlled context
System.String msg
Returns
Type Description
BTStatus

RunningUnchanged(IBehaviorControlled)

Declaration
public BTStatus RunningUnchanged(IBehaviorControlled context)
Parameters
Type Name Description
IBehaviorControlled context
Returns
Type Description
BTStatus

RunningUnchanged(IBehaviorControlled, Func<String>)

Declaration
public BTStatus RunningUnchanged(IBehaviorControlled context, Func<string> msg)
Parameters
Type Name Description
IBehaviorControlled context
System.Func<System.String> msg
Returns
Type Description
BTStatus

RunningUnchanged(IBehaviorControlled, String)

Declaration
public BTStatus RunningUnchanged(IBehaviorControlled context, string msg)
Parameters
Type Name Description
IBehaviorControlled context
System.String msg
Returns
Type Description
BTStatus

Status(BTStatus, IBehaviorControlled)

Declaration
public BTStatus Status(BTStatus status, IBehaviorControlled context)
Parameters
Type Name Description
BTStatus status
IBehaviorControlled context
Returns
Type Description
BTStatus

Status(BTStatus, IBehaviorControlled, Func<String>)

Declaration
public BTStatus Status(BTStatus status, IBehaviorControlled context, Func<string> msg)
Parameters
Type Name Description
BTStatus status
IBehaviorControlled context
System.Func<System.String> msg
Returns
Type Description
BTStatus

Status(BTStatus, IBehaviorControlled, String)

Declaration
public BTStatus Status(BTStatus status, IBehaviorControlled context, string msg)
Parameters
Type Name Description
BTStatus status
IBehaviorControlled context
System.String msg
Returns
Type Description
BTStatus

Status(Boolean, IBehaviorControlled, String, String)

Declaration
public bool Status(bool set, IBehaviorControlled context, string trueMsg, string falseMsg)
Parameters
Type Name Description
System.Boolean set
IBehaviorControlled context
System.String trueMsg
System.String falseMsg
Returns
Type Description
System.Boolean

Success(IBehaviorControlled)

Declaration
public BTStatus Success(IBehaviorControlled context)
Parameters
Type Name Description
IBehaviorControlled context
Returns
Type Description
BTStatus

Success(IBehaviorControlled, Func<String>)

Declaration
public BTStatus Success(IBehaviorControlled context, Func<string> msg)
Parameters
Type Name Description
IBehaviorControlled context
System.Func<System.String> msg
Returns
Type Description
BTStatus

Success(IBehaviorControlled, String)

Declaration
public BTStatus Success(IBehaviorControlled context, string msg)
Parameters
Type Name Description
IBehaviorControlled context
System.String msg
Returns
Type Description
BTStatus
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾