Show / Hide Table of Contents

Class BehaviorSuccess<T>

Executes an action then just returns success.

Inheritance
System.Object
Behavior<T>
GenericBehavior<T>
BehaviorSuccess<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 BehaviorSuccess<T> : GenericBehavior<T> where T : IBehaviorControlled
Type Parameters
Name Description
T

Constructors

BehaviorSuccess(String)

Declaration
public BehaviorSuccess(string name)
Parameters
Type Name Description
System.String name

Fields

Func

Declaration
public Action<T> Func
Field Value
Type Description
System.Action<T>

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
☀
☾