Click or drag to resize
Task Class
Base class for tasks to have no need to implement empty methods in classes which implement the ITask interface.
Inheritance Hierarchy
SystemObject
  Slash.AI.BehaviorTrees.ImplementationsTask
    More...

Namespace: Slash.AI.BehaviorTrees.Implementations
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
[SerializableAttribute]
public class Task : ITask

The Task type exposes the following members.

Constructors
  NameDescription
Public methodTask
Initializes a new instance of the Task class. Constructor.
Top
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 methodEquals(Object)
Determines whether the specified BaseTask is equal to the current BaseTask.
(Overrides ObjectEquals(Object).)
Public methodEquals(Task)
Determines whether the specified Task is equal to the current Task.
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 methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Protected methodInvokeOnSuccess
Invoke callback when decider finished successful.
Public methodUpdate
Per frame update.
Top
Events
  NameDescription
Public eventOnSuccess
Called when decider finished successful.
Top
See Also
Inheritance Hierarchy
SystemObject
  Slash.AI.BehaviorTrees.ImplementationsTask
    Slash.AI.BehaviorTrees.Implementations.ActionsBaseCopyBlackboardAttribute
    Slash.AI.BehaviorTrees.Implementations.ActionsBaseCopyParentBlackboardAttribute
    Slash.AI.BehaviorTrees.Implementations.ActionsBaseRemoveBlackboardAttribute
    Slash.AI.BehaviorTrees.Implementations.ActionsBaseSetBlackboardAttribute
    Slash.AI.BehaviorTrees.Implementations.ActionsDynamicTask
    Slash.AI.BehaviorTrees.ImplementationsBaseTaskTTaskData
    Slash.AI.BehaviorTrees.Implementations.ConditionsCondition
    Slash.AI.BehaviorTrees.Implementations.DecoratorsDecorator
    Slash.AI.BehaviorTrees.Implementations.EventsEventTaskT
    Slash.AI.BehaviorTrees.ImplementationsSubTreeReference