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

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...

Inheritance diagram for RAIN.BehaviorTrees.BTLastStateNode:
RAIN.BehaviorTrees.BTDecoratorNode RAIN.BehaviorTrees.BTNode RAIN.Action.Action

List of all members.

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]

Detailed Description

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 & Destructor Documentation

Constructor.

Parameters:
nodeNameThe name of the node to create

Member Function Documentation

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

Action.Execute passthrough.

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

Reimplemented from RAIN.Action.Action.

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

Action.Start passthrough.

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

Reimplemented from RAIN.Action.Action.

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

Action.Stop passthrough.

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

Reimplemented from RAIN.Action.Action.


Member Data Documentation

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.