#include <OgreController.h>
Public Methods | |
Controller (ControllerValue *src, ControllerValue *dest, ControllerFunction *func) | |
Usual constructor. More... | |
virtual | ~Controller () |
Default d-tor. More... | |
void | setSource (ControllerValue *src) |
ControllerValue * | getSource (void) |
void | setDestination (ControllerValue *dest) |
ControllerValue * | getDestination (void) |
bool | getEnabled (void) const |
Returns true if this controller is currently enabled. More... | |
void | setEnabled (bool enabled) |
Sets whether this controller is enabled. More... | |
void | setFunction (ControllerFunction *func) |
Sets the function object to be used by this controller. More... | |
ControllerFunction * | getFunction (void) |
Returns a pointer to the function object used by this controller. More... | |
void | update (void) |
Protected Attributes | |
ControllerValue * | mSource |
Source value. More... | |
ControllerValue * | mDest |
Destination value. More... | |
ControllerFunction * | mFunc |
Function. More... | |
bool | mEnabled |
Controller is enabled or not. More... |
The Controller is an intentionally abstract concept - it can generate values based on input and a function, which can either be one of the standard ones supplied, or a function can be 'plugged in' for custom behaviour - see the ControllerFunction class for details. Both the input and output values are via ControllerValue objects, meaning that any value can be both input and output of the controller.
Whilst this is very flexible, it can be a little bit confusing so to make it simpler the most often used controller setups are available by calling methods on the ControllerManager object.
|
Usual constructor.
|
|
Default d-tor.
|
|
|
|
Returns true if this controller is currently enabled.
|
|
Returns a pointer to the function object used by this controller.
|
|
|
|
|
|
Sets whether this controller is enabled.
|
|
Sets the function object to be used by this controller.
|
|
|
|
|
|
Destination value.
|
|
Controller is enabled or not.
|
|
Function.
|
|
Source value.
|
Copyright © 2002 by The OGRE Team