Click or drag to resize
Decorator Class
Base class for a decorator.
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 Decorator : Task, IComposite, 
	ITask

The Decorator type exposes the following members.

Constructors
  NameDescription
Public methodDecorator
Initializes a new instance of the Decorator class
Top
Properties
  NameDescription
Public propertyCapacity
Maximum number of children that the composite can take.
Public propertyChildren
Collection of children. Read-only.
Public propertyDeciderSerialized
Xml serialization for decorated task.
Public propertyTask
Decorated task.
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 TaskActivate(IAgentData, IDecisionData).)
Protected methodActivateChild
Activates the child of the decorator.
Public methodAddChild
Adds a child to this group task.
Public methodDeactivate
Deactivation.
(Overrides TaskDeactivate(IAgentData).)
Protected methodDeactivateChild
Deactivates the child of the decorator.
Public methodDecide
Depending on the group policy of its parent, the floating point return value indicates whether the task will be activated.
(Overrides TaskDecide(IAgentData, IDecisionData).)
Protected methodDecideChild
Let's the child decide.
Public methodEquals(Object)
The equals.
(Overrides TaskEquals(Object).)
Public methodEquals(Decorator)
The equals.
Public methodFindTasks
Searches for tasks which forfill the passed predicate.
(Overrides TaskFindTasks(TaskNode, FuncITask, Boolean, ICollectionTaskNode).)
Public methodGetHashCode
The get hash code.
(Overrides TaskGetHashCode.)
Public methodInsertChild
Inserts a child to this group task at the passed index.
Public methodMoveChild
Moves a child to the passed position inside the group.
Public methodRemoveChild
Removes a child from this group task.
Public methodUpdate
Per frame update.
(Overrides TaskUpdate(IAgentData).)
Protected methodUpdateChild
Updates the child of the decorator.
Top
Events
  NameDescription
Public eventChildAdded
Called when a child was added to the composite.
Public eventChildRemoved
Called when a child was removed from the composite.
Top
See Also