Click or drag to resize
AgentData Class
Base agent data implementation.
Inheritance Hierarchy
SystemObject
  Slash.AI.BehaviorTrees.ImplementationsAgentData

Namespace: Slash.AI.BehaviorTrees.Implementations
Assembly: Slash.AI.BehaviorTrees (in Slash.AI.BehaviorTrees.dll) Version: 1.0.6018.40184
Syntax
public class AgentData : IAgentData

The AgentData type exposes the following members.

Constructors
  NameDescription
Public methodAgentData
Initializes a new instance of the AgentData class. Constructor.
Public methodAgentData(Blackboard)
Initializes a new instance of the AgentData class. Constructor.
Top
Properties
  NameDescription
Public propertyBlackboard
Blackboard to exchange data between behaviors.
Public propertyCurrentDeciderLevel
Current decider level. Incremented/Decremented while the behavior tree is walked through. Indicates how deep in the tree (on which level) the execution currently is. It's just an internal information, so don't change it from the outside.
Public propertyCurrentTaskData
Task specific data.
Public propertyExecutionStatus
Behavior tree execution status.
Public propertyLogEnabled
Indicates if this behavior should log events. If not set the behaviors/deciders should only log warnings and errors to the logger.
Top
Methods
  NameDescription
Public methodGetTaskDataT
Tries to cast the current task data to the specified type and returns it. Throws an exception if there is no current task data or if it couldn't be casted.
Public methodPostUpdate
Called after behavior tree was updated.
Public methodPreUpdate
Called before behavior tree is updated.
Top
Events
  NameDescription
Public eventOnActiveTasksChanged
Called when the active tasks of the agent changed.
Top
Fields
  NameDescription
Public fieldStatic memberMaxTaskLevels
Maximum number of task levels.
Top
See Also