
Public Types | |
| enum | { SIMPLECHASECAM = 436356, SIMPLEFLYCAM, CHASECAM, FLYCAM, FREELOOKCHASECAM } |
| enum | { FORWARD = 0, BACKWARD, LEFT, RIGHT } |
| typedef ControlDispatcher | Controller |
defines the Controller class | |
| typedef Controller * | CP |
pointer to Controller | |
Public Member Functions | |
| void | addController (const CP &) |
| adds a controller | |
| void | calculateTargetPos (Vector3 &pos, float dist) |
| CameraManager () | |
| void | clearControllers () |
| registers this from all controllers. | |
| GCamera * | getActiveCamera () |
| virtual void * | getAddress () |
| virtual int | getRegTypeID () |
| ModelEntity * | getTarget () |
| virtual void | onCollision (dContact contacts[ONE::physic::ODEWorld::MAX_CONTACTS], int &numContacts) |
| collision callback for physics system gets called on collision. -> collision response | |
| void | processControlEvent (ControlEvent &e) |
| void | removeController (const CP &) |
| removes a controller | |
| void | renderDebug (RenderDevice *rd) |
| void | resetCamera () |
| void | setActiveCamera (GCamera *c) |
| void | setCamera (Vector3 pos, Vector3 target) |
| void | setMode (int i) |
| void | setTarget (ModelEntity *m) |
| 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 | |
| void | update (float dt) |
| void | updateByMode (float dt, CoordinateFrame &coordFrame) |
Static Public Member Functions | |
| static void | destroyInstance () |
| may be used to manually destroy the singleton instance | |
| static CameraManager * | getInstance () |
| accesses the singleton instance | |
| static int | getMaxInterpenetrationIndex (dContact contacts[ONE::physic::ODEWorld::MAX_CONTACTS], int numContacts) |
| static int | getStaticRegTypeID () |
| static bool | isActive () |
| checks if the singleton is active | |
| static bool | isDestroyed () |
| checks if the singleton is destroyed | |
| static bool | isVirgin () |
| checks if the singleton has not been initialized | |
| static void | setPriority (unsigned short) |
| sets this singleton's shutdown priority | |
| static void | setStaticRegTypeID (int id) |
Public Attributes | |
| float | NEARPLANE |
Protected Types | |
| typedef util::OrderedAutomatic< CameraManager > | Friendly |
Protected Member Functions | |
| Singleton () | |
Static Protected Member Functions | |
| static void | destroyedError () |
| static void | initInstance () |
Static Protected Attributes | |
| static int | typeID |
|
|
defines the
|
|
|
pointer to
|
|
|
subclasses should declare this type their friend in order to allow access to ctor and dtor, as those should generally be made private. |
|
|
|
|
|
|
|
|
|
|
|
adds a controller This object is automatically registered with the controller. |
|
||||||||||||
|
|
|
|
registers this from all controllers.
|
|
|
|
|
|
may be used to manually destroy the singleton instance If this function is not called, the instance is destroyed automatically during shutdown. |
|
|
|
|
|
Reimplemented in ONE::scene::SolidEntity. |
|
|
accesses the singleton instance The exact operation executed by calling this function is determined by the singleton policies.
|
|
||||||||||||
|
|
|
|
Implements ONE::util::RegisterableType< Collideable >. Reimplemented in ONE::physic::Body, ONE::physic::ODEGeom, ONE::physic::SimpleODEBody, ONE::scene::ActorEntity, and ONE::scene::SolidEntity. |
|
|
Reimplemented in ONE::physic::Body, ONE::physic::ODEGeom, ONE::physic::SimpleODEBody, ONE::scene::ActorEntity, and ONE::scene::SolidEntity. |
|
|
|
|
|
|
|
|
checks if the singleton is active
|
|
|
checks if the singleton is destroyed
This function returns
|
|
|
checks if the singleton has not been initialized A singleton is not initialized if no instance exists and no instance has been destroyed.
|
|
||||||||||||
|
collision callback for physics system gets called on collision. -> collision response
Reimplemented from ONE::physic::Collideable. |
|
|
Implements ONE::util::ControlListener. |
|
|
removes a controller Tis object is automatically de-registered from the controller. |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
sets this singleton's shutdown priority The higher the priority, the earlier the instance will be destroyed during shutdown. If the priority is changed, the highest given priority will be used. |
|
|
Reimplemented in ONE::physic::Body, ONE::physic::ODEGeom, ONE::physic::SimpleODEBody, ONE::scene::ActorEntity, and ONE::scene::SolidEntity. |
|
|
|
|
|
shares the The controllers stay in control of this object. |
|
|
|
|
|
transfers the The controllers no longer control this object. |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
1.4.3