Click or drag to resize
LoopDecorator Class
A decorator which executes the decorated task forever. If the task succeeds or fails, it is restarted.
Inheritance Hierarchy

Namespace: Slash.AI.BehaviorTrees.Implementations.Decorators
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
[SerializableAttribute]
public class LoopDecorator : Decorator

The LoopDecorator type exposes the following members.

Constructors
  NameDescription
Public methodLoopDecorator
Initializes a new instance of the LoopDecorator class
Top
Methods
  NameDescription
Public methodActivate
Activation. This method is called when the task was chosen to be executed. It's called right before the first update of the task. The task can setup its specific task data in here and do initial actions.
(Overrides DecoratorActivate(IAgentData, IDecisionData).)
Public methodDeactivate
Deactivation.
(Overrides DecoratorDeactivate(IAgentData).)
Public methodDecide
Depending on the group policy of its parent, the floating point return value indicates whether the task will be activated.
(Overrides DecoratorDecide(IAgentData, IDecisionData).)
Public methodUpdate
Per frame update.
(Overrides DecoratorUpdate(IAgentData).)
Top
See Also