Public Member Functions | Public Attributes | Properties
RAIN.BehaviorTrees.BTSequencerNode Class Reference

BTSequencerNode executes a series of nodes. The child list order is assumed to be prioritized, so that children can be executed in order. More...

Inheritance diagram for RAIN.BehaviorTrees.BTSequencerNode:
RAIN.BehaviorTrees.BTNode RAIN.Action.Action

List of all members.

Public Member Functions

 BTSequencerNode (string nodeName)
 Constructor.
override void GetActiveNodes (List< BTNode > nodeList)
override Action.Action.ActionResult Start (Agent agent, float deltaTime)
 Start Action handler.
override ActionResult Execute (Agent agent, float deltaTime)
 Execute causes child nodes to be executed in turn. If any child returns FAILURE, this node returns FAILURE and stops executing.
override ActionResult Stop (Agent agent, float deltaTime)
 Stop Action handler.

Public Attributes

const string NODETYPE = "sequencer"
 Node type, used in xml parsing.

Properties

override bool IsContainer [get]

Detailed Description

BTSequencerNode executes a series of nodes. The child list order is assumed to be prioritized, so that children can be executed in order.


Constructor & Destructor Documentation

Constructor.

Parameters:
nodeNameThe name of the node to create

Member Function Documentation

override ActionResult RAIN.BehaviorTrees.BTSequencerNode.Execute ( Agent  agent,
float  deltaTime 
) [virtual]

Execute causes child nodes to be executed in turn. If any child returns FAILURE, this node returns FAILURE and stops executing.

Parameters:
agentAI Agent owner of the behavior tree
deltaTimetimestep in seconds
Returns:
ActionResult, FAILURE if any child vails, SUCCESS if all succeed

Reimplemented from RAIN.Action.Action.

override Action.Action.ActionResult RAIN.BehaviorTrees.BTSequencerNode.Start ( Agent  agent,
float  deltaTime 
) [virtual]

Start Action handler.

Parameters:
agentAI Agent owner of the behavior tree
deltaTimetimestep in seconds
Returns:
ActionResult

Reimplemented from RAIN.Action.Action.

override ActionResult RAIN.BehaviorTrees.BTSequencerNode.Stop ( Agent  agent,
float  deltaTime 
) [virtual]

Stop Action handler.

Parameters:
agentAI Agent owner of the behavior tree
deltaTimetimestep in seconds
Returns:
ActionResult

Reimplemented from RAIN.Action.Action.


Member Data Documentation

const string RAIN.BehaviorTrees.BTSequencerNode.NODETYPE = "sequencer"

Node type, used in xml parsing.