RAIN.GOB.GOBTree.GOBTreeNode Class Reference
Inheritance diagram for RAIN.GOB.GOBTree.GOBTreeNode:
RAIN.BehaviorTrees.BTNode RAIN.Action.Action

List of all members.

Public Member Functions

 GOBTreeNode (string nodeName)
 Standard constructor.
override void AddChild (BTNode child)
 Adds a goal or an action the the gobtree.
override void RemoveChild (string actionName)
 RemoveChild will remove the named child node. Children are not re-sorted.
override ActionResult Start (Agent agent, float deltaTime)
 Start is called by an Action Executor one time prior to calling consecutive Execute calls.
override Action.Action.ActionResult Execute (Agent agent, float deltaTime)
 Execute is called by an Action Executor to perform the work of the Action. An Action can run to completion, but will typically perform only the work for a single timestep, then continue at the next timestep for long running actions.
override ActionResult Stop (Agent agent, float deltaTime)
 Stop is called to support cleanup and termination of execution activites. Stop should always be called by the Action Executor after a Start, regardless of the SUCCESS or FAILURE of any Execute calls.

Public Attributes

const string NODETYPE = "gob"

Constructor & Destructor Documentation

RAIN.GOB.GOBTree.GOBTreeNode.GOBTreeNode ( string  nodeName)

Standard constructor.

Parameters:
nodeNameName of this node in the tree

Member Function Documentation

override void RAIN.GOB.GOBTree.GOBTreeNode.AddChild ( BTNode  child) [virtual]

Adds a goal or an action the the gobtree.

Parameters:
child

Reimplemented from RAIN.BehaviorTrees.BTNode.

override Action.Action.ActionResult RAIN.GOB.GOBTree.GOBTreeNode.Execute ( Agent  agent,
float  deltaTime 
) [virtual]

Execute is called by an Action Executor to perform the work of the Action. An Action can run to completion, but will typically perform only the work for a single timestep, then continue at the next timestep for long running actions.

Parameters:
agentThe AI agent owning this action
deltaTimetimestep in seconds
Returns:
Returns SUCCESS if the action completed successfully, FAILURE if a failure occured, RUNNING if more work is to be done

Reimplemented from RAIN.Action.Action.

override void RAIN.GOB.GOBTree.GOBTreeNode.RemoveChild ( string  actionName) [virtual]

RemoveChild will remove the named child node. Children are not re-sorted.

Parameters:
actionName

Reimplemented from RAIN.BehaviorTrees.BTNode.

override ActionResult RAIN.GOB.GOBTree.GOBTreeNode.Start ( Agent  agent,
float  deltaTime 
) [virtual]

Start is called by an Action Executor one time prior to calling consecutive Execute calls.

Parameters:
agentThe AI agent owning this action
deltaTimetimestep in seconds
Returns:
Returns an ActionResult of SUCCESS or FAILURE, which may be ignored by the caller if desired

Reimplemented from RAIN.Action.Action.

override ActionResult RAIN.GOB.GOBTree.GOBTreeNode.Stop ( Agent  agent,
float  deltaTime 
) [virtual]

Stop is called to support cleanup and termination of execution activites. Stop should always be called by the Action Executor after a Start, regardless of the SUCCESS or FAILURE of any Execute calls.

Parameters:
agentThe AI agent owning this action
deltaTimetimestep in seconds
Returns:
Returns an ActionResult of SUCCESS or FAILURE, which may be ignored by the caller if desired

Reimplemented from RAIN.Action.Action.