The object manager.
More...
#include <ObjectManager.h>
|
|
std::list< CObject * > | m_stdObjectList |
| | Object list.
|
| |
|
|
const float | m_fFloorHt = 1.0f |
| | Floor height.
|
| |
| const Vector3 | m_vPlanePos |
| | Plane position.
|
| |
| const Vector3 | m_vPlaneSize |
| | Plane size.
|
| |
|
const bool | m_bWireFrame = false |
| | Draw in wireframe.
|
| |
|
const float | m_fMoonRadius = 25.0f |
| | Moon radius.
|
| |
|
const float | m_fBallRadius = 2.0f |
| | Ball radius.
|
| |
|
const Vector3 | m_vBoxSize = Vector3(9.0f, 6.0f, 6.0f) |
| | Box size.
|
| |
|
const float | m_fTetrahedronSize = 16.0f |
| | Tetrahedron size.
|
| |
|
const float | m_fIcosahedronSize = 16.0f |
| | Icosahedron size.
|
| |
|
const float | m_fDodecahedronSize = 16.0f |
| | Dodecahedron size.
|
| |
|
const float | m_fTeapotSize = 8.0f |
| | Teapot size.
|
| |
|
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.
|
| |
A collection of all of the game objects.
◆ CObjectManager()
| CObjectManager::CObjectManager |
( |
| ) |
|
◆ ~CObjectManager()
| CObjectManager::~CObjectManager |
( |
| ) |
|
Destruct all of the objects in the object list.
◆ Clear()
| void CObjectManager::Clear |
( |
| ) |
|
Delete all of the objects managed by the object manager. This involves deleting all of the CObject instances pointed to by the object list, then clearing the object list.
◆ Create()
Create an object instance and insert it into the object list.
- Parameters
-
| obj | Object type. |
| d | Mesh descriptor. |
- Returns
- Pointer to the object created.
◆ CullDeadObjects()
| void CObjectManager::CullDeadObjects |
( |
| ) |
|
|
private |
Iterate through the objects and check whether their "is dead" flag has been set. If so, then delete its pointer from the object list and destruct the object.
◆ Draw()
| void CObjectManager::Draw |
( |
| ) |
|
Draw all objects in the object list.
◆ Update()
| void CObjectManager::Update |
( |
| ) |
|
Update all objects in the object list. This function has two tasks, playing collision sounds and deleting delete all objects that have fallen off the plane and dropped far enough.