
Public Types | |
| enum | { FORWARD, BACKWARD } |
| test actions More... | |
| typedef ControlDispatcher | Controller |
defines the Controller class | |
| typedef Controller * | CP |
pointer to Controller | |
Public Member Functions | |
| virtual void | act (const ActionControl &a) |
| bool | active () const |
| void | addController (const CP &) |
| adds a controller | |
| void | clearControllers () |
| registers this from all controllers. | |
| void | doSimulation (double elapsedTime) |
| FPController (class RenderDevice *, class UserInput *) | |
| FPController () | |
| void | getCoordinateFrame (CoordinateFrame &c) const |
| CoordinateFrame | getCoordinateFrame () const |
| Vector3 | getLookVector () const |
| double | getPitch () const |
| const Vector3 & | getPosition () const |
| Vector3 | getStrafeVector () const |
| double | getYaw () const |
| void | init (class RenderDevice *device, class UserInput *input) |
| void | lookAt (const Vector3 &position) |
| virtual void | processControlEvent (ControlEvent &e) |
| void | removeController (const CP &) |
| removes a controller | |
| void | reset () |
| void | setActive (bool a) |
| void | setCoordinateFrame (const CoordinateFrame &c) |
| void | setMoveRate (double metersPerSecond) |
| void | setPosition (const Vector3 &t) |
| void | setTurnRate (double radiansPerSecond) |
| void | shareControllers (Controlled *peer) |
shares the Controller s controlling this object with peer | |
| void | transferControllers (Controlled *peer) |
transfers the Controller s controlling this object to peer | |
| virtual | ~FPController () |
|
|
defines the
|
|
|
pointer to
|
|
|
test actions
|
|
|
|
|
||||||||||||
|
Creates and initializes |
|
|
Deactivates the controller |
|
|
|
|
|
|
|
|
adds a controller This object is automatically registered with the controller. |
|
|
registers this from all controllers.
|
|
|
Increments the ManualCameraController's orientation and position. Invoke once per simulation step. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Right vector |
|
|
|
|
||||||||||||
|
You need to call setActive(true) before the controller will work. |
|
|
|
|
|
Implements ONE::util::ControlListener. |
|
|
removes a controller Tis object is automatically de-registered from the controller. |
|
|
Invoke immediately before entering the main game loop. |
|
|
When active, the FPCameraController takes over the mouse. It turns off the mouse cursor and switches to first person controller style. Use this to toggle between your menu system and first person camera control. When deactivated, the mouse cursor is restored and the mouse is located where it was when the camera controller was activated. In release mode, the cursor movement is restricted to the window while the controller is active. This does not occur in debug mode because you might hit a breakpoint while the controller is active and it would be annoying to not be able to move the mouse. |
|
|
Sets to the closest legal controller orientation to the coordinate frame. |
|
|
Initial value is 10 |
|
|
|
|
|
Initial value is PI / 2 |
|
|
shares the The controllers stay in control of this object. |
|
|
transfers the The controllers no longer control this object. |
1.4.3