Click or drag to resize
EventTaskT Class
Base class for event tasks.
Inheritance Hierarchy
SystemObject
  Slash.AI.BehaviorTrees.ImplementationsTask
    Slash.AI.BehaviorTrees.Implementations.EventsEventTaskT

Namespace: Slash.AI.BehaviorTrees.Implementations.Events
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
public abstract class EventTask<T> : Task

Type Parameters

T
Event-specific data.

The EventTaskT type exposes the following members.

Constructors
  NameDescription
Protected methodEventTaskT
Initializes a new instance of the EventTaskT class
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.
(Overrides TaskActivate(IAgentData, IDecisionData).)
Public methodDecide
Depending on the group policy of its parent, the floating point return value indicates whether the decider will be activated.
(Overrides TaskDecide(IAgentData, IDecisionData).)
Protected methodExecute
Execution of the event task specific code.
Protected methodFinalize
Finalizes an instance of the EventTaskT class. Destructor.
(Overrides ObjectFinalize.)
Protected methodOnEventOccured
Called from derived event tasks to indicate that the event for the passed agent occured.
Protected methodRegisterAgent
Registers an agent, so the event task will be informed when the observed event occurs.
Protected methodUnregisterAgent
Unregisters an agent.
Top
See Also