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

BTRepeater is a BTDecoratorNode used to cause another node to repeat until some return state is achieved. More...

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

List of all members.

Public Member Functions

 BTRepeater (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 = "repeater"
 Node type, used in xml parsing.
ActionResult repeatUntilState = ActionResult.FAILURE
 The ActionResult we are repeating until we receive.

Properties

override bool IsContainer [get]

Detailed Description

BTRepeater is a BTDecoratorNode used to cause another node to repeat until some return state is achieved.


Constructor & Destructor Documentation

Constructor.

Parameters:
nodeNameThe name of the node to create

Member Function Documentation

override ActionResult RAIN.BehaviorTrees.BTRepeater.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.BTRepeater.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.BTRepeater.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

const string RAIN.BehaviorTrees.BTRepeater.NODETYPE = "repeater"

Node type, used in xml parsing.

The ActionResult we are repeating until we receive.