BehaviorActivatorControl Class Reference#include <BehaviorActivatorControl.h>
Inheritance diagram for BehaviorActivatorControl:
[legend]List of all members.
Detailed Description
Upon activation, will start, stop, or toggle a behavior.
Definition at line 8 of file BehaviorActivatorControl.h.
|
Public Types |
| | start |
| | Passed to constructor, indicates this control should start the behavior when activated.
|
| | stop |
| | Passed to constructor, indicates this control should stop the behavior when activated.
|
| | toggle |
| | Passed to constructor, indicates this control should toggle the behavior when activated.
|
| enum | Mode_t { start,
stop,
toggle
} |
| | lets you tell it what action to perform More...
|
Public Member Functions |
| virtual | ~BehaviorActivatorControl () |
| | destructor
|
| virtual ControlBase * | activate (MotionManager::MC_ID disp_id, Socket *gui) |
| | performs the action denoted by mode
|
|
| | BehaviorActivatorControl (BehaviorBase *behave, Mode_t m=toggle) |
| | constructors
|
| | BehaviorActivatorControl (const std::string &n, BehaviorBase *behave, Mode_t m=toggle) |
| | constructors
|
| | BehaviorActivatorControl (const std::string &n, const std::string &d, BehaviorBase *behave, Mode_t m=toggle) |
| | constructors
|
Protected Member Functions |
| void | init () |
| | adds to target's reference counter
|
Protected Attributes |
| BehaviorBase * | target |
| | The behavior to activate/deactivate.
|
| Mode_t | mode |
| | the mode this control is in
|
Private Member Functions |
| | BehaviorActivatorControl (const BehaviorActivatorControl &) |
| | don't copy this class
|
| BehaviorActivatorControl | operator= (const BehaviorActivatorControl &) |
| | don't assign this class
|
Member Enumeration Documentation
lets you tell it what action to perform
- Enumerator:
-
| start |
Passed to constructor, indicates this control should start the behavior when activated. |
| stop |
Passed to constructor, indicates this control should stop the behavior when activated. |
| toggle |
Passed to constructor, indicates this control should toggle the behavior when activated. |
Definition at line 11 of file BehaviorActivatorControl.h.
Constructor & Destructor Documentation
| BehaviorActivatorControl::BehaviorActivatorControl |
( |
BehaviorBase * |
behave, |
|
|
Mode_t |
m = toggle | |
|
) |
| | [inline] |
| BehaviorActivatorControl::BehaviorActivatorControl |
( |
const std::string & |
n, |
|
|
BehaviorBase * |
behave, |
|
|
Mode_t |
m = toggle | |
|
) |
| | [inline] |
| BehaviorActivatorControl::BehaviorActivatorControl |
( |
const std::string & |
n, |
|
|
const std::string & |
d, |
|
|
BehaviorBase * |
behave, |
|
|
Mode_t |
m = toggle | |
|
) |
| | [inline] |
| virtual BehaviorActivatorControl::~BehaviorActivatorControl |
( |
|
) |
[inline, virtual] |
Member Function Documentation
| void BehaviorActivatorControl::init |
( |
|
) |
[inline, protected] |
Member Data Documentation
The documentation for this class was generated from the following file:
|