Colobot
|
Public Member Functions | |
bool | AddInstance (CObject *instance) |
Registers new object. | |
bool | DeleteInstance (CObject *instance) |
Deletes the registered object. | |
CObject * | SearchInstance (int id) |
Seeks for an object. | |
CObject * | CreateObject (Math::Vector pos, float angle, ObjectType type, float power=-1.f, float zoom=1.f, float height=0.f, bool trainer=false, bool toy=false, int option=0) |
Creates an object. | |
void | Flush () |
Removes all objects. |
Protected Attributes | |
CObject * | m_table [MAX_OBJECTS] |
int | m_usedCount |
Additional Inherited Members | |
![]() | |
static CObjectManager & | GetInstance () |
static CObjectManager * | GetInstancePointer () |
static bool | IsCreated () |
![]() | |
static CObjectManager * | m_instance = nullptr |