Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

GroupNode Class Reference

#include <GroupNode.h>

Inheritance diagram for GroupNode:

Inheritance graph
[legend]
List of all members.

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.

Public Member Functions

 GroupNode ()
 constructor
 GroupNode (const std::string &nm)
 constructor
virtual void DoStart ()
 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


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

Tekkotsu v3.0
Generated Fri May 11 20:08:11 2007 by Doxygen 1.4.7