Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <BehaviorSwitchControl.h>
Inheritance diagram for BehaviorSwitchControlBase:
Definition at line 12 of file BehaviorSwitchControl.h.
Public Member Functions | |
BehaviorSwitchControlBase (const std::string &n, BehaviorBase *beh, BehaviorGroup *bg=NULL) | |
constructor | |
BehaviorSwitchControlBase (BehaviorBase *beh, BehaviorGroup *bg=NULL) | |
constructor | |
virtual | ~BehaviorSwitchControlBase () |
destructor | |
virtual BehaviorSwitchControlBase * | start () |
activates the behavior, handy for making start-up behaviors that you can turn off again with the Controller | |
virtual BehaviorSwitchControlBase * | stop () |
stops the behavior | |
virtual BehaviorSwitchControlBase * | toggle () |
toggles the behavior | |
virtual ControlBase * | activate (MotionManager::MC_ID display, Socket *gui) |
tells the current behavior (if there is one) to stop then loads its own | |
virtual std::string | getName () const |
adds a status to the name: - if in memory, # if running | |
virtual std::string | getDescription () const |
returns a short description of what the control does | |
Protected Member Functions | |
virtual void | stopother () |
Stops the "other" guy's behavior - if ::behgrp is NULL, stops ourselves. | |
virtual void | startmine () |
Starts our behavior. | |
virtual bool | isRunning () const |
Returns true if the associated behavior is running. | |
Protected Attributes | |
BehaviorGroup * | behgrp |
the behavior group this belongs to. Uses this to track the "current" behavior | |
BehaviorBase * | mybeh |
used to store the behavior. If retained and non-NULL, will be valid. However, if not retained, only valid if equals behgrp->curBehavior | |
Private Member Functions | |
BehaviorSwitchControlBase (const BehaviorSwitchControlBase &) | |
shouldn't copy these | |
BehaviorSwitchControlBase | operator= (const BehaviorSwitchControlBase &) |
shouldn't assign these |
|
constructor
Definition at line 32 of file BehaviorSwitchControl.h. |
|
constructor
Definition at line 40 of file BehaviorSwitchControl.h. |
|
destructor
Definition at line 48 of file BehaviorSwitchControl.h. |
|
shouldn't copy these
|
|
tells the current behavior (if there is one) to stop then loads its own
Reimplemented from ControlBase. Definition at line 71 of file BehaviorSwitchControl.h. |
|
returns a short description of what the control does
Reimplemented from ControlBase. Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 83 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControl< B, Al >::getDescription(), and BehaviorSwitchActivatorControl::getDescription(). |
|
adds a status to the name: - if in memory, # if running
Reimplemented from ControlBase. Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 80 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControl< B, Al >::getName(), and BehaviorSwitchActivatorControl::getName(). |
|
Returns true if the associated behavior is running.
Definition at line 107 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControl< B, Al >::isValid(), start(), stop(), and toggle(). |
|
shouldn't assign these
|
|
activates the behavior, handy for making start-up behaviors that you can turn off again with the Controller If you start twice without stopping (ie it's already running), shouldn't do anything Definition at line 61 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchActivatorControl::activate(). |
|
Starts our behavior.
Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 100 of file BehaviorSwitchControl.h. |
|
stops the behavior
Definition at line 64 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchActivatorControl::activate(), BehaviorSwitchControl< B, Al >::~BehaviorSwitchControl(), and ~BehaviorSwitchControlBase(). |
|
Stops the "other" guy's behavior - if ::behgrp is NULL, stops ourselves.
Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 89 of file BehaviorSwitchControl.h. |
|
toggles the behavior
Definition at line 67 of file BehaviorSwitchControl.h. Referenced by activate(), and BehaviorSwitchActivatorControl::activate(). |
|
the behavior group this belongs to. Uses this to track the "current" behavior
Definition at line 117 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControl< B, Al >::BehaviorSwitchControl(), BehaviorSwitchControlBase(), isRunning(), BehaviorSwitchControl< B, Al >::startmine(), startmine(), BehaviorSwitchControl< B, Al >::stopother(), stopother(), BehaviorSwitchControl< B, Al >::~BehaviorSwitchControl(), and ~BehaviorSwitchControlBase(). |
|
used to store the behavior. If retained and non-NULL, will be valid. However, if not retained, only valid if equals behgrp->curBehavior
Definition at line 118 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControl< B, Al >::BehaviorSwitchControl(), BehaviorSwitchControlBase(), BehaviorSwitchControl< B, Al >::getDescription(), getDescription(), getName(), isRunning(), BehaviorSwitchControl< B, Al >::startmine(), startmine(), BehaviorSwitchControl< B, Al >::stopother(), stopother(), BehaviorSwitchControl< B, Al >::~BehaviorSwitchControl(), and ~BehaviorSwitchControlBase(). |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:04 2004 by Doxygen 1.3.4 |