Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
BehaviorSwitchControlBase Class Reference#include <BehaviorSwitchControl.h>
Inheritance diagram for BehaviorSwitchControlBase:
![]() Detailed DescriptionHolds some utility classes and functions for BehaviorSwitchControl which shouldn't be stored in a templated class.Definition at line 13 of file BehaviorSwitchControl.h.
Constructor & Destructor Documentation
shouldn't copy these
Member Function Documentation
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 89 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchActivatorControl::activate(), and Aibo3DControllerBehavior::DoStart().
stops the behavior
Definition at line 92 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchActivatorControl::activate(), Aibo3DControllerBehavior::DoStop(), BehaviorSwitchControl< B, Al >::~BehaviorSwitchControl(), and ~BehaviorSwitchControlBase().
toggles the behavior
Definition at line 95 of file BehaviorSwitchControl.h. Referenced by activate(), and BehaviorSwitchActivatorControl::activate().
called when the user has supplied a text string (may or may not have been prompted by doReadStdIn()! May not even be active yet - the user can direct the same input to a set of hilighted menus) The value which is returned is then activate()ed and pushed on the Controller's stack Reimplemented from ControlBase. Definition at line 97 of file BehaviorSwitchControl.h.
tells the current behavior (if there is one) to stop then loads its own
Reimplemented from ControlBase. Definition at line 108 of file BehaviorSwitchControl.h.
adds a status to the name: - if in memory, # if running
Reimplemented from ControlBase. Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 117 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControl< B, Al >::getName(), and BehaviorSwitchActivatorControl::getName().
returns a short description of what the control does
Reimplemented from ControlBase. Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 122 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControl< B, Al >::getDescription(), and BehaviorSwitchActivatorControl::getDescription().
Returns true if the associated behavior is running.
Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 129 of file BehaviorSwitchControl.h. Referenced by Aibo3DControllerBehavior::DoStart(), BehaviorSwitchControl< B, Al >::isRunning(), start(), stop(), takeInput(), and toggle().
Stops the "other" guy's behavior - if behgrp is NULL, stops ourselves.
Definition at line 138 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControl< B, Al >::isRunning(), start(), stop(), and toggle().
Starts our behavior.
Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 154 of file BehaviorSwitchControl.h. Referenced by start(), takeInput(), and toggle().
updates other members in the group that the current behavior stopped -- do not call if behgrp is NULL
Definition at line 161 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControlBase(), and stopother().
called by notifyGroupMembers if mybeh was destructed when stopped
Reimplemented in BehaviorSwitchControl< B, Al >. Definition at line 167 of file BehaviorSwitchControl.h. Referenced by stopother().
shouldn't assign these
Member Data Documentation
the behavior group this belongs to. Uses this to track the "current" behavior
Definition at line 169 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControlBase(), notifyGroupMembers(), BehaviorSwitchControl< B, Al >::startmine(), startmine(), 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 170 of file BehaviorSwitchControl.h. Referenced by BehaviorSwitchControl< B, Al >::behaviorStopped(), BehaviorSwitchControl< B, Al >::BehaviorSwitchControl(), BehaviorSwitchControlBase(), BehaviorSwitchControl< B, Al >::getDescription(), getDescription(), getName(), isRunning(), BehaviorSwitchControl< B, Al >::startmine(), startmine(), stopother(), takeInput(), BehaviorSwitchControl< B, Al >::~BehaviorSwitchControl(), and ~BehaviorSwitchControlBase().
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 |