Click or drag to resize
CompositeTTaskData Class
Task which contains array of references to other tasks.
Inheritance Hierarchy
SystemObject
  Slash.AI.BehaviorTrees.ImplementationsTask
    Slash.AI.BehaviorTrees.ImplementationsBaseTaskTTaskData
      Slash.AI.BehaviorTrees.Implementations.CompositesCompositeTTaskData
        Slash.AI.BehaviorTrees.Implementations.CompositesParallel
        Slash.AI.BehaviorTrees.Implementations.CompositesSelector
        Slash.AI.BehaviorTrees.Implementations.CompositesSequence

Namespace: Slash.AI.BehaviorTrees.Implementations.Composites
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
[SerializableAttribute]
public abstract class Composite<TTaskData> : BaseTask<TTaskData>, 
	IComposite, ITask
where TTaskData : new(), ITaskData

Type Parameters

TTaskData
Task data.

The CompositeTTaskData type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCapacity
Maximum number of children that the composite can take.
Public propertyChildren
Children of this group task. Read-only.
Public propertyChildrenSerialized
Xml Serialization for decorated children.
Top
Methods
  NameDescription
Protected methodActivateChild
Activates the passed child. Does no index range checking.
Public methodAddChild
Adds a child to this group task.
Protected methodDeactivateChild
Deactivates the passed child. Does no index range checking.
Protected methodDecideForFirstPossible
Takes first task which wants to be active. Checks only a subset of the children from index 0 to passed lastChildIdx (exclusive).
Protected methodDelegateDecideToChildren
Computes the relevancy for the decide method by taking the maximum relevancy of all children.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides BaseTaskTTaskDataEquals(Object).)
Public methodEquals(CompositeTTaskData)
Determines whether the specified Composite is equal to the current Composite.
Public methodFindTasks
Searches for tasks which forfill the passed predicate.
(Overrides TaskFindTasks(TaskNode, FuncITask, Boolean, ICollectionTaskNode).)
Protected methodGetActiveChildTasks
Gets the active tasks of the passed child. Does no index range checking.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides BaseTaskTTaskDataGetHashCode.)
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.
Protected methodUpdateChild
Updates the passed child. Does no index range checking.
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