Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

BehaviorSwitchControlBase::BehaviorGroup Class Reference

#include <BehaviorSwitchControl.h>

Inheritance diagram for BehaviorSwitchControlBase::BehaviorGroup:

List of all members.


Detailed Description

A simple utility class to allow the BehaviorSwitchControl's to be able to deactivate the current behavior when a new one becomes active.

Most behaviors are either major actions which you'll only want one of active at a time, or else their background monitors of some sort, that can run in different combinations. Think radio buttons vs. checkboxes. This will help you implement the "radio button" style... just assign all the behaviors to the same group, they will automatically use it to turn the previous behavior off when a new one becomes active.
Pass NULL instead of one of these to get checkbox-style.

Definition at line 22 of file BehaviorSwitchControl.h.


Public Member Functions

 BehaviorGroup ()
 contructor
 ~BehaviorGroup ()
 destructor, will stop the current behavior if it was a one-shot

Public Attributes

BehaviorBasecurBehavior
 pointer to current behavior
std::set
< BehaviorSwitchControlBase * > 
members
 set of members of the group

Private Member Functions

 BehaviorGroup (const BehaviorGroup &)
 shouldn't be called
BehaviorGroup operator= (const BehaviorGroup &)
 shouldn't be called

Constructor & Destructor Documentation

BehaviorSwitchControlBase::BehaviorGroup::BehaviorGroup (  )  [inline]

contructor

Definition at line 24 of file BehaviorSwitchControl.h.

BehaviorSwitchControlBase::BehaviorGroup::~BehaviorGroup (  )  [inline]

destructor, will stop the current behavior if it was a one-shot

Definition at line 25 of file BehaviorSwitchControl.h.

BehaviorSwitchControlBase::BehaviorGroup::BehaviorGroup ( const BehaviorGroup  )  [private]

shouldn't be called


Member Function Documentation

BehaviorGroup BehaviorSwitchControlBase::BehaviorGroup::operator= ( const BehaviorGroup  )  [private]

shouldn't be called


Member Data Documentation


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

Tekkotsu v4.0
Generated Thu Nov 22 00:58:11 2007 by Doxygen 1.5.4