The object manager.
More...
#include <ObjectManager.h>
|
|
bool | m_bLevelCompleted = false |
| | Level completion flag.
|
| |
|
|
static Sage::CSpriteRenderer * | m_pRenderer = nullptr |
| | Pointer to renderer.
|
| |
|
static CObjectManager * | m_pObjectManager = nullptr |
| | Pointer to object manager.
|
| |
|
static Sage::CParticleEngine2D * | m_pParticleEngine = nullptr |
| | Pointer to particle engine.
|
| |
|
static CTileManager * | m_pTileManager = nullptr |
| | Pointer to tile manager.
|
| |
|
static CPlayer * | m_pPlayer = nullptr |
| | Pointer to player character.
|
| |
|
static Vector2 | m_vWorldSize |
| | World height and width.
|
| |
|
static bool | m_bGodMode = false |
| | God mode flag.
|
| |
|
static bool | m_bShowBounds = false |
| | Draw bounding boxes and circles flag.
|
| |
|
static eGameState | m_eGameState = eGameState::Loading |
| | Game state.
|
| |
A collection of all of the game objects.
◆ BroadPhase()
| void CObjectManager::BroadPhase |
( |
| ) |
|
|
private |
Perform collision detection and response for each object with the world edges and for all objects with another object, making sure that each pair of objects is processed only once.
◆ Clear()
| void CObjectManager::Clear |
( |
| ) |
|
Clear the object list and reset the level completion flag.
◆ Create()
Create an object and put a pointer to it at the back of the object list m_stdObjectList, which it inherits from LBaseObjectManager.
- Parameters
-
| t | Sprite type. |
| pos | Initial position. |
- Returns
- Pointer to the object created.
◆ Draw()
| void CObjectManager::Draw |
( |
| ) |
|
Draw the tiled background and the objects in the object list.
◆ LevelCompleted()
| const bool CObjectManager::LevelCompleted |
( |
| ) |
const |
Reader function for the level completion flag.
- Returns
- true if the level has been completed successfully.
◆ NarrowPhase()
Perform collision detection and response for a pair of objects.
- Parameters
-
| p0 | Pointer to the first object. |
| p1 | Pointer to the second object. |