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


Constructor & Destructor Documentation

GroupNode::GroupNode  )  [inline]
 

constructor

Definition at line 29 of file GroupNode.h.

GroupNode::GroupNode const std::string &  nm  )  [inline, explicit]
 

constructor

Definition at line 31 of file GroupNode.h.

GroupNode::GroupNode const GroupNode node  )  [private]
 

don't call this


Member Function Documentation

virtual void GroupNode::DoStart  )  [inline, virtual]
 

activates all of the sub nodes

Reimplemented from StateNode.

Definition at line 34 of file GroupNode.h.

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

don't call this


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

Tekkotsu v2.4.1
Generated Tue Aug 16 16:35:02 2005 by Doxygen 1.4.4