![]() | Decorator Class |
Namespace: Slash.AI.BehaviorTrees.Implementations.Decorators
The Decorator type exposes the following members.
Name | Description | |
---|---|---|
![]() | Capacity |
Maximum number of children that the composite can take.
|
![]() | Children |
Collection of children. Read-only.
|
![]() | DeciderSerialized |
Xml serialization for decorated task.
|
![]() | Task |
Decorated task.
|
Name | Description | |
---|---|---|
![]() | Activate |
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).) |
![]() | ActivateChild |
Activates the child of the decorator.
|
![]() | AddChild |
Adds a child to this group task.
|
![]() | Deactivate |
Deactivation.
(Overrides TaskDeactivate(IAgentData).) |
![]() | DeactivateChild |
Deactivates the child of the decorator.
|
![]() | Decide |
Depending on the group policy of its parent, the floating point return value indicates whether the task will be activated.
(Overrides TaskDecide(IAgentData, IDecisionData).) |
![]() | DecideChild |
Let's the child decide.
|
![]() | Equals(Object) |
The equals.
(Overrides TaskEquals(Object).) |
![]() | Equals(Decorator) |
The equals.
|
![]() | FindTasks |
Searches for tasks which forfill the passed predicate.
(Overrides TaskFindTasks(TaskNode, FuncITask, Boolean, ICollectionTaskNode).) |
![]() | GetHashCode |
The get hash code.
(Overrides TaskGetHashCode.) |
![]() | InsertChild |
Inserts a child to this group task at the passed index.
|
![]() | MoveChild |
Moves a child to the passed position inside the group.
|
![]() | RemoveChild |
Removes a child from this group task.
|
![]() | Update |
Per frame update.
(Overrides TaskUpdate(IAgentData).) |
![]() | UpdateChild |
Updates the child of the decorator.
|
Name | Description | |
---|---|---|
![]() | ChildAdded |
Called when a child was added to the composite.
|
![]() | ChildRemoved |
Called when a child was removed from the composite.
|