|
|
static CRenderer * | m_pRenderer = nullptr |
| | Pointer to the renderer.
|
| |
|
static Sage::CCamera * | m_pCamera = nullptr |
| | Pointer to the camera.
|
| |
|
static CObjectManager * | m_pObjectManager = nullptr |
| | Pointer to object manager.
|
| |
|
static btDiscreteDynamicsWorld * | m_pPhysicsWorld = nullptr |
| | Pointer to physics engine.
|
| |
|
static btDefaultCollisionConfiguration * | m_pConfig = nullptr |
| | Bullet physics configuration.
|
| |
|
static btCollisionDispatcher * | m_pDispatcher = nullptr |
| | Bullet physics dispatcher.
|
| |
|
static btBroadphaseInterface * | m_pBroadphase = nullptr |
| | Bullet physics broadphase.
|
| |
|
static btSequentialImpulseConstraintSolver * | m_pSolver = nullptr |
| | Bullet physics constraint solver.
|
| |
|
static btAlignedObjectArray< btCollisionShape * > | m_btCollisionShapes |
| | Collision shapes.
|
| |
|
static bool | m_bCollisionSoundsMuted = false |
| | Mute collision sounds.
|
| |
CCommon is a singleton class that encapsulates things that are common to different game components, including game state variables. Making it a singleton class means that we can avoid passing its member variables around as parameters, which makes the code minisculely faster, and more importantly, reduces function clutter.