BTLastStateNode is a BTDecoratorNode used to record the last state of the decorated node. This is used by the BTParallelNode to keep track of how child nodes should be processed based on their prior results. More...
Public Member Functions | |
BTLastStateNode (BTNode child) | |
Constructor. | |
override void | GetActiveNodes (List< BTNode > nodeList) |
override ActionResult | Start (Agent agent, float deltaTime) |
Action.Start passthrough. | |
override ActionResult | Execute (Agent agent, float deltaTime) |
Action.Execute passthrough. | |
override ActionResult | Stop (Agent agent, float deltaTime) |
Action.Stop passthrough. | |
Public Attributes | |
const string | NODETYPE = "laststate" |
Node type, used in xml parsing. | |
ActionResult | lastState |
The last ActionResult returned by the decorated node, either from Start, Execute, or Stop. | |
Properties | |
override bool | IsContainer [get] |
BTLastStateNode is a BTDecoratorNode used to record the last state of the decorated node. This is used by the BTParallelNode to keep track of how child nodes should be processed based on their prior results.
Constructor.
nodeName | The name of the node to create |
override ActionResult RAIN.BehaviorTrees.BTLastStateNode.Execute | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Action.Execute passthrough.
agent | AI Agent owner of the behavior tree |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.BehaviorTrees.BTLastStateNode.Start | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Action.Start passthrough.
agent | AI Agent owner of the behavior tree |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.BehaviorTrees.BTLastStateNode.Stop | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Action.Stop passthrough.
agent | AI Agent owner of the behavior tree |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
The last ActionResult returned by the decorated node, either from Start, Execute, or Stop.
const string RAIN.BehaviorTrees.BTLastStateNode.NODETYPE = "laststate" |
Node type, used in xml parsing.