BTActionNode is the behavior leaf node representing an atomic action. More...
Public Member Functions | |
BTActionNode (string nodeName) | |
Constructor. | |
void | SetAction (string actionName) |
SetAction loads an instance from the supplied class name. | |
override ActionResult | Start (Agent agent, float deltaTime) |
Start initializes context and the action instance. | |
override ActionResult | Execute (Agent agent, float deltaTime) |
Execute causes the action instance to execute. | |
override ActionResult | Stop (Agent agent, float deltaTime) |
Stop sends the Stop message to the action instance. | |
Public Attributes | |
const string | NODETYPE = "action" |
Node type, used in xml parsing. | |
Action.Action | actionInstance |
An instance of the Action to execute. |
BTActionNode is the behavior leaf node representing an atomic action.
RAIN.BehaviorTrees.BTActionNode.BTActionNode | ( | string | nodeName | ) |
Constructor.
nodeName | The name of the node to create |
override ActionResult RAIN.BehaviorTrees.BTActionNode.Execute | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Execute causes the action instance to execute.
agent | AI Agent owner of the behavior tree |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
void RAIN.BehaviorTrees.BTActionNode.SetAction | ( | string | actionName | ) |
SetAction loads an instance from the supplied class name.
actionName | The class name of the action to load |
override ActionResult RAIN.BehaviorTrees.BTActionNode.Start | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Start initializes context and the action instance.
agent | AI Agent owner of the behavior tree |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.BehaviorTrees.BTActionNode.Stop | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Stop sends the Stop message to the action instance.
agent | AI Agent owner of the behavior tree |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
An instance of the Action to execute.
const string RAIN.BehaviorTrees.BTActionNode.NODETYPE = "action" |
Node type, used in xml parsing.