Click or drag to resize
ITask Interface
Interface which defines methods for a decider inside the behavior tree.

Namespace: Slash.AI.BehaviorTrees.Interfaces
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
public interface ITask

The ITask type exposes the following members.

Properties
  NameDescription
Public propertyName
Debug name.
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.
Public methodDeactivate
Deactivation.
Public methodDecide
Depending on the group policy of its parent, the floating point return value indicates whether the decider will be activated.
Public methodFindTasks
Searches for tasks which forfill the passed predicate.
Public methodGetActiveTasks
Generates a collection of active task nodes under this task. Used for debugging only.
Public methodUpdate
Per frame update.
Top
Events
  NameDescription
Public eventOnSuccess
Called when decider finished successful.
Top
See Also