Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

GroupNode Class Reference

Allows a group of StateNodes to be activated together. More...

#include <GroupNode.h>

Inheritance diagram for GroupNode:

Detailed Description

Allows a group of StateNodes to be activated together.

When a transition occurs into the group node, it will activate all of its subnodes.

Note:
Another (probably better) way to do this is with a multi-destination transition - after the initialization of the transition (usually specifying the first transition) you can call the Transition::addDestination() function to add addition destinations, replicating the functionality of this class.

The group node doesn't deactivate its subnodes together. In essence, this is a fork - one transition targeting the GroupNode can activate several states, which are then separate branches of execution. (Although of course only one is actually being executed at a time, as per the cooperative multi-tasking of behaviors.)

Definition at line 26 of file GroupNode.h.

List of all members.

Public Member Functions

 GroupNode ()
 constructor
 GroupNode (const std::string &nm)
 constructor
virtual void postStart ()
 activates all of the sub nodes

Private Member Functions

 GroupNode (const GroupNode &node)
 don't call this
GroupNode operator= (const GroupNode &node)
 don't call this

Constructor & Destructor Documentation

GroupNode::GroupNode (  ) 

constructor

Definition at line 29 of file GroupNode.h.

GroupNode::GroupNode ( const std::string &  nm  )  [explicit]

constructor

Definition at line 31 of file GroupNode.h.

GroupNode::GroupNode ( const GroupNode node  )  [private]

don't call this


Member Function Documentation

GroupNode GroupNode::operator= ( const GroupNode node  )  [private]

don't call this

virtual void GroupNode::postStart (  )  [virtual]

activates all of the sub nodes

Reimplemented from BehaviorBase.

Definition at line 34 of file GroupNode.h.


The documentation for this class was generated from the following file:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:09 2016 by Doxygen 1.6.3