BTActivationManager is an AIBehavior associated with a BehaviorTreeMind responsible for managing execution of a behavior tree and interacting with user code to perform pre-treetraversal steps such as per frame variable binding.
More...
List of all members.
Public Member Functions |
| void | LoadBehaviorTree (Agent agent, string filename, string rootName) |
| | Load a behavior tree from an xml file.
|
| override bool | Act (Agent agent, float deltaTime) |
| | AI Behavior Act() method. Start the behavior tree if necessary. Call PreAction. Execute the Action.
|
Protected Member Functions |
| abstract void | PreAction (Agent agent, float deltaTime) |
| | User must implement this method. PreAction supports any pre-tree-execution code. This is an opportunity to set variables in the actionContext that might be used within the tree, or to perform any other necessary activities.
|
Detailed Description
BTActivationManager is an AIBehavior associated with a BehaviorTreeMind responsible for managing execution of a behavior tree and interacting with user code to perform pre-treetraversal steps such as per frame variable binding.
Member Function Documentation
| override bool RAIN.BehaviorTrees.BTActivationManager.Act |
( |
Agent |
agent, |
|
|
float |
deltaTime |
|
) |
| [virtual] |
AI Behavior Act() method. Start the behavior tree if necessary. Call PreAction. Execute the Action.
- Parameters:
-
| agent | The agent owning this Mind |
| deltaTime | timestep in seconds |
- Returns:
- false if a FAILURE occurs, true otherwise
Implements RAIN.Core.AIBehavior.
| void RAIN.BehaviorTrees.BTActivationManager.LoadBehaviorTree |
( |
Agent |
agent, |
|
|
string |
filename, |
|
|
string |
rootName |
|
) |
| |
Load a behavior tree from an xml file.
- Parameters:
-
| filename | Name of the xml file to load |
| abstract void RAIN.BehaviorTrees.BTActivationManager.PreAction |
( |
Agent |
agent, |
|
|
float |
deltaTime |
|
) |
| [protected, pure virtual] |
User must implement this method. PreAction supports any pre-tree-execution code. This is an opportunity to set variables in the actionContext that might be used within the tree, or to perform any other necessary activities.
- Parameters:
-
| agent | AI Agent owner of the behavior tree |
| deltaTime | timestep in seconds |