DecoratorNode is the abstract base class for behavior tree nodes that are intended as passthrough decorators that proxy for their child but add some intermediate functionality. More...
Public Member Functions | |
| BTDecoratorNode (BTNode child) | |
| Standard constructor. The actionName of the decorator becomes that name of the child. | |
| void | SetDecoratedChild (BTNode child) |
| Directly set the child node being decorated. | |
| override void | AddChild (BTNode child) |
| AddChild passthrough. The child is added to the decorated object. | |
| override void | RemoveChild (string actionName) |
| RemoveChild passthrough. The child is removed from the decorated object. | |
| override float | Priority () |
| Priority passthroough. | |
| override void | SetActionContext (Action.ActionContext context) |
| SetActionContext passthrough. Sets the actionContext of this and the decorated node. | |
| override void | Sort () |
| Sort passthrough. | |
| override ActionResult | Start (Core.Agent agent, float deltaTime) |
| Action.Start passthrough. | |
| override ActionResult | Execute (Core.Agent agent, float deltaTime) |
| Action.Execute passthrough. | |
| override ActionResult | Stop (Core.Agent agent, float deltaTime) |
| Action.Stop passthrough. | |
Protected Attributes | |
| BTNode | childNode = null |
| The childNode being decorated. | |
DecoratorNode is the abstract base class for behavior tree nodes that are intended as passthrough decorators that proxy for their child but add some intermediate functionality.
| RAIN.BehaviorTrees.BTDecoratorNode.BTDecoratorNode | ( | BTNode | child | ) |
Standard constructor. The actionName of the decorator becomes that name of the child.
| child | The child being decorated |
| override void RAIN.BehaviorTrees.BTDecoratorNode.AddChild | ( | BTNode | child | ) | [virtual] |
AddChild passthrough. The child is added to the decorated object.
| child | New child node |
Reimplemented from RAIN.BehaviorTrees.BTNode.
| override ActionResult RAIN.BehaviorTrees.BTDecoratorNode.Execute | ( | Core.Agent | agent, |
| float | deltaTime | ||
| ) |
Action.Execute passthrough.
| agent | AI Agent owner of the behavior tree |
| deltaTime | timestep in seconds |
| override float RAIN.BehaviorTrees.BTDecoratorNode.Priority | ( | ) | [virtual] |
Priority passthroough.
Reimplemented from RAIN.BehaviorTrees.BTNode.
| override void RAIN.BehaviorTrees.BTDecoratorNode.RemoveChild | ( | string | actionName | ) | [virtual] |
RemoveChild passthrough. The child is removed from the decorated object.
| actionName | actionName of the child to remove |
Reimplemented from RAIN.BehaviorTrees.BTNode.
| override void RAIN.BehaviorTrees.BTDecoratorNode.SetActionContext | ( | Action.ActionContext | context | ) |
SetActionContext passthrough. Sets the actionContext of this and the decorated node.
| context | ActionContext to set |
| void RAIN.BehaviorTrees.BTDecoratorNode.SetDecoratedChild | ( | BTNode | child | ) |
Directly set the child node being decorated.
| child | The child to decorate |
| override void RAIN.BehaviorTrees.BTDecoratorNode.Sort | ( | ) | [virtual] |
Sort passthrough.
Reimplemented from RAIN.BehaviorTrees.BTNode.
| override ActionResult RAIN.BehaviorTrees.BTDecoratorNode.Start | ( | Core.Agent | agent, |
| float | deltaTime | ||
| ) |
Action.Start passthrough.
| agent | AI Agent owner of the behavior tree |
| deltaTime | timestep in seconds |
| override ActionResult RAIN.BehaviorTrees.BTDecoratorNode.Stop | ( | Core.Agent | agent, |
| float | deltaTime | ||
| ) |
Action.Stop passthrough.
| agent | AI Agent owner of the behavior tree |
| deltaTime | timestep in seconds |
BTNode RAIN.BehaviorTrees.BTDecoratorNode.childNode = null [protected] |
The childNode being decorated.