BTSelectorNode chooses one of a set of options. The child list order is assumed to be prioritized, so that children can be evaluated in order. More...
Public Member Functions | |
BTSelectorNode (string nodeName) | |
Constructor. | |
override ActionResult | Start (Agent agent, float deltaTime) |
Start Action handler. | |
override Action.Action.ActionResult | Execute (Agent agent, float deltaTime) |
Execute causes child nodes to be evaluated in turn. If any child returns SUCCESS, this node returns SUCCESS and stops evaluating. | |
override Action.Action.ActionResult | Stop (Agent agent, float deltaTime) |
Stop Action handler. | |
Public Attributes | |
const string | NODETYPE = "selector" |
Node type, used in xml parsing. |
BTSelectorNode chooses one of a set of options. The child list order is assumed to be prioritized, so that children can be evaluated in order.
RAIN.BehaviorTrees.BTSelectorNode.BTSelectorNode | ( | string | nodeName | ) |
Constructor.
nodeName | The name of the node to create |
override Action.Action.ActionResult RAIN.BehaviorTrees.BTSelectorNode.Execute | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Execute causes child nodes to be evaluated in turn. If any child returns SUCCESS, this node returns SUCCESS and stops evaluating.
agent | AI Agent owner of the behavior tree |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.BehaviorTrees.BTSelectorNode.Start | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Start Action handler.
agent | AI Agent owner of the behavior tree |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
override Action.Action.ActionResult RAIN.BehaviorTrees.BTSelectorNode.Stop | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Stop Action handler.
agent | AI Agent owner of the behavior tree |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
const string RAIN.BehaviorTrees.BTSelectorNode.NODETYPE = "selector" |
Node type, used in xml parsing.