#include <objmgr.h>
Public Methods | |
ObjectManager () | |
~ObjectManager () | |
void | AddObject (GameObject *, objecttype=OT_UNKNOWN) |
GameObject * | AddObject (objecttype) |
GameObject * | GetObject (objecttype) |
MainChar * | GetMainChar () |
Crosshair * | GetCrosshair () |
GameObject * | FindFirstCollision (Rect &R, bool exclude=true) |
vector< Rect > & | draw (Graphics &) |
void | think () |
void | animate () |
void | update () |
void | recenter () |
vector< Rect > & | GetDrawList () |
void | SetSubWorld (SubWorld *s) |
SubWorld * | GetSubWorld () const |
Private Methods | |
void | AddToAnyObjectList (list< Object * > &, Object *) |
void | AddToObjectList (Object *) |
Private Attributes | |
list< Object * > | object_list |
vector< Rect > | object_draw_list |
MainChar * | mainchar |
Crosshair * | crosshair |
SubWorld * | currentSubWorld |
|
Definition at line 8 of file objmgr.cpp. |
|
Definition at line 14 of file objmgr.cpp. References object_list. |
|
Definition at line 116 of file objmgr.cpp. References AddToObjectList(), crosshair, mainchar, ObjectManager::Object::obj, objecttype, OT_BEAR, OT_BEARSPAWN, OT_CROSSHAIR, OT_EXPLODE, OT_MAINCHAR, OT_UFO, and ObjectManager::Object::type. |
|
Definition at line 107 of file objmgr.cpp. References AddToObjectList(), ObjectManager::Object::obj, objecttype, and ObjectManager::Object::type. Referenced by MainChar::FireWeapon(), Game::Game(), Game::step(), and BearSpawnPoint::think(). |
|
if the object structure doesn't have a gameobject, put it at the end of the list.
Definition at line 30 of file objmgr.cpp. References GameObject::GetLayer(), GameObject::GetY(), and ObjectManager::Object::obj. Referenced by AddToObjectList(). |
|
Definition at line 102 of file objmgr.cpp. References AddToAnyObjectList(), and object_list. Referenced by AddObject(). |
|
Definition at line 257 of file objmgr.cpp. References object_list. Referenced by Game::GameLoop(). |
|
Definition at line 137 of file objmgr.cpp. References object_draw_list, and object_list. Referenced by Game::RenderScreen(). |
|
Definition at line 311 of file objmgr.cpp. References object_list, OT_CROSSHAIR, OT_MAINCHAR, Rect, and Util_Intersect(). Referenced by ExplodeObject::think(). |
|
Definition at line 26 of file objmgr.h. References GetObject(), and OT_MAINCHAR. Referenced by MainChar::FireWeapon(), Game::GameLoop(), and MainChar::think(). |
|
Definition at line 40 of file objmgr.h. References object_draw_list. Referenced by Game::RenderScreen(). |
|
Definition at line 25 of file objmgr.h. References objecttype. Referenced by Game::Game(), Game::GameLoop(), and Bear::think(). |
|
Definition at line 277 of file objmgr.cpp. References crosshair, mainchar, object_list, objecttype, OT_CROSSHAIR, and OT_MAINCHAR. Referenced by Game::Game(), and GetCrosshair(). |
|
Definition at line 43 of file objmgr.h. References currentSubWorld. Referenced by MainChar::FireWeapon(), GameObject::GetBoundingRect(), GameObject::Recenter(), MainChar::Recenter(), and Bear::think(). |
|
Definition at line 267 of file objmgr.cpp. References object_list. Referenced by Game::GameLoop(). |
|
Definition at line 42 of file objmgr.h. Referenced by Game::Game(). |
|
Definition at line 154 of file objmgr.cpp. References GameObject::GetLayer(), GameObject::GetY(), ObjectManager::Object::obj, object_list, and GameObject::think(). Referenced by Game::GameLoop(). |
|
Definition at line 296 of file objmgr.cpp. References object_list. Referenced by Game::GameLoop(). |
|
Definition at line 53 of file objmgr.h. Referenced by AddObject(), GetObject(), and ObjectManager(). |
|
Definition at line 55 of file objmgr.h. Referenced by GetSubWorld(). |
|
Definition at line 52 of file objmgr.h. Referenced by AddObject(), GetObject(), and ObjectManager(). |
|
Definition at line 49 of file objmgr.h. Referenced by draw(), and GetDrawList(). |
|
Definition at line 48 of file objmgr.h. Referenced by AddToObjectList(), animate(), draw(), FindFirstCollision(), GetObject(), recenter(), think(), update(), and ~ObjectManager(). |