![]() | CompositeTTaskData Class |
Namespace: Slash.AI.BehaviorTrees.Implementations.Composites
[SerializableAttribute] public abstract class Composite<TTaskData> : BaseTask<TTaskData>, IComposite, ITask where TTaskData : new(), ITaskData
The CompositeTTaskData type exposes the following members.
Name | Description | |
---|---|---|
![]() | CompositeTTaskData |
Constructor.
|
![]() | CompositeTTaskData(ListITask) |
Constructor.
|
Name | Description | |
---|---|---|
![]() | Capacity |
Maximum number of children that the composite can take.
|
![]() | Children |
Children of this group task. Read-only.
|
![]() | ChildrenSerialized |
Xml Serialization for decorated children.
|
Name | Description | |
---|---|---|
![]() | ActivateChild |
Activates the passed child. Does no index range checking.
|
![]() | AddChild |
Adds a child to this group task.
|
![]() | DeactivateChild |
Deactivates the passed child. Does no index range checking.
|
![]() | DecideForFirstPossible |
Takes first task which wants to be active. Checks only a subset of the children from index 0 to passed lastChildIdx
(exclusive).
|
![]() | DelegateDecideToChildren |
Computes the relevancy for the decide method by taking the maximum relevancy of all children.
|
![]() | Equals(Object) | (Overrides BaseTaskTTaskDataEquals(Object).) |
![]() | Equals(CompositeTTaskData) |
Determines whether the specified Composite is equal to the current
Composite.
|
![]() | FindTasks |
Searches for tasks which forfill the passed predicate.
(Overrides TaskFindTasks(TaskNode, FuncITask, Boolean, ICollectionTaskNode).) |
![]() | GetActiveChildTasks |
Gets the active tasks of the passed child. Does no index range checking.
|
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Overrides BaseTaskTTaskDataGetHashCode.) |
![]() | 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.
|
![]() | UpdateChild |
Updates the passed child. Does no index range checking.
|
Name | Description | |
---|---|---|
![]() | ChildAdded |
Called when a child was added to the composite.
|
![]() | ChildRemoved |
Called when a child was removed from the composite.
|