Public Member Functions | Public Attributes
RAIN.BehaviorTrees.BTTimerNode Class Reference

BTTimerNode waits and returns RUNNING until the timer expires, then returns SUCCESS. BTTimerNode never returns FAILURE. More...

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

List of all members.

Public Member Functions

 BTTimerNode (string nodeName)
 Constructor.
override ActionResult Start (Agent agent, float deltaTime)
 ActionResult.Start.
override ActionResult Execute (Agent agent, float deltaTime)
 ActionResult.Execute Causes the action to return running until the timer expires.
override ActionResult Stop (Agent agent, float deltaTime)
 ActionResult.Stop.

Public Attributes

const string NODETYPE = "timer"
 waitTime sets the timer delay
float waitTime

Detailed Description

BTTimerNode waits and returns RUNNING until the timer expires, then returns SUCCESS. BTTimerNode never returns FAILURE.


Constructor & Destructor Documentation

Constructor.

Parameters:
nodeNameThe name of the node to create

Member Function Documentation

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

ActionResult.Execute Causes the action to return running until the timer expires.

Parameters:
agent
deltaTime
Returns:
RUNNING if the timer has not expired, SUCCESS if it has

Reimplemented from RAIN.Action.Action.

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

ActionResult.Start.

Parameters:
agent
deltaTime
Returns:
FAILURE if no aspect or assignTo variable have been set, SUCCESS otherwise

Reimplemented from RAIN.Action.Action.

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

ActionResult.Stop.

Parameters:
agent
deltaTime
Returns:
SUCCESS

Reimplemented from RAIN.Action.Action.


Member Data Documentation

waitTime sets the timer delay