The Blank Game
A Blank 2D Game with Sound and Graphics
Public Member Functions | List of all members
CObjectManager Class Reference

The object manager. More...

#include <ObjectManager.h>

Inheritance diagram for CObjectManager:
CCommon

Public Member Functions

CObjectcreate (eSprite, const Vector2 &)
 Create new object. More...
 

Additional Inherited Members

- Static Protected Attributes inherited from CCommon
static LSpriteRenderer * m_pRenderer = nullptr
 Pointer to renderer.
 
static CObjectManagerm_pObjectManager = nullptr
 Pointer to object manager.
 

Detailed Description

A collection of all of the game objects.

Member Function Documentation

◆ create()

CObject * CObjectManager::create ( eSprite  t,
const Vector2 &  pos 
)

Create an object and put a pointer to it at the back of the object list m_stdObjectList, which it inherits from LBaseObjectManager.

Parameters
tSprite type.
posInitial position.
Returns
Pointer to the object created.