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, BehaviorGroup *bg, bool retain) | |
constructor | |
virtual | ~BehaviorSwitchControlBase () |
destructor | |
virtual BehaviorSwitchControlBase * | start ()=0 |
activates the behavior, handy for making start-up behaviors that you can turn off again with the Controller | |
virtual BehaviorSwitchControlBase * | stop ()=0 |
stops the behavior | |
virtual BehaviorSwitchControlBase * | toggle ()=0 |
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 | |
Protected Attributes | |
bool | retained |
true if the behavior should be generated once and retained after DoStop. Otherwise, a new one is generated each time it is started | |
BehaviorGroup * | behgrp |
the behavior group this belongs to. Uses this to track the "current" behavior | |
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. References ReferenceCounter::AddReference(), behgrp, and retained. |
|
destructor
Definition at line 40 of file BehaviorSwitchControl.h. References behgrp, and ReferenceCounter::RemoveReference(). |
|
shouldn't copy these
|
|
tells the current behavior (if there is one) to stop then loads its own
Reimplemented from ControlBase. Definition at line 53 of file BehaviorSwitchControl.h. References ControlBase::activate(), ControlBase::slotsSize(), 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 Implemented in BehaviorSwitchControl< B, Al >. |
|
stops the behavior
Implemented in BehaviorSwitchControl< B, Al >. |
|
toggles the behavior
Implemented in BehaviorSwitchControl< B, Al >. |
|
the behavior group this belongs to. Uses this to track the "current" behavior
Definition at line 63 of file BehaviorSwitchControl.h. |
|
true if the behavior should be generated once and retained after DoStop. Otherwise, a new one is generated each time it is started
Definition at line 62 of file BehaviorSwitchControl.h. |
Tekkotsu v1.4 |
Generated Sat Jul 19 00:08:51 2003 by Doxygen 1.3.2 |