Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <BehaviorSwitchControl.h>
Inheritance diagram for BehaviorSwitchControlBase::BehaviorGroup:
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 21 of file BehaviorSwitchControl.h.
Public Member Functions | |
BehaviorGroup () | |
contructor | |
~BehaviorGroup () | |
destructor, will stop the current behavior if it was a one-shot | |
Public Attributes | |
BehaviorBase * | curBehavior |
pointer to current behavior | |
Private Member Functions | |
BehaviorGroup (const BehaviorGroup &) | |
shouldn't be called | |
BehaviorGroup | operator= (const BehaviorGroup &) |
shouldn't be called |
|
contructor
Definition at line 23 of file BehaviorSwitchControl.h. |
|
destructor, will stop the current behavior if it was a one-shot
Definition at line 24 of file BehaviorSwitchControl.h. |
|
shouldn't be called
|
|
shouldn't be called
|
|
pointer to current behavior
Definition at line 25 of file BehaviorSwitchControl.h. Referenced by BehaviorGroup(), BehaviorSwitchControlBase::isRunning(), BehaviorSwitchControlBase::startmine(), BehaviorSwitchControlBase::stopother(), and ~BehaviorGroup(). |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:05 2004 by Doxygen 1.3.4 |