Classes | |
class | Drawable |
Functions | |
void | CreateAll () |
Calls the Create() function for every Drawable in the drawablePool. More... | |
void | UpdateAll () |
Calls the Update() function for every Drawable in the drawablePool. More... | |
void | DrawAll () |
Calls the Draw() function for every Drawable in the drawablePool. More... | |
void | DestroyAllDrawables () |
Destroys every Drawable in the drawablePool and clears drawablePool. More... | |
void | DestroyDrawableFromID (int id) |
Iterates through drawablePool and destroys the Drawable corresponding to the ID. More... | |
Drawable * | GetDrawableFromID (int id) |
Get the Drawable From ID object. More... | |
Variables | |
std::list< Drawable * > | drawablePool |
int | currentId = 0 |
void DrawableManager::CreateAll | ( | ) |
Calls the Create() function for every Drawable in the drawablePool.
void DrawableManager::DestroyAllDrawables | ( | ) |
Destroys every Drawable in the drawablePool and clears drawablePool.
void DrawableManager::DestroyDrawableFromID | ( | int | id | ) |
Iterates through drawablePool and destroys the Drawable corresponding to the ID.
id | This describes the sprite's id |
void DrawableManager::DrawAll | ( | ) |
Calls the Draw() function for every Drawable in the drawablePool.
Drawable * DrawableManager::GetDrawableFromID | ( | int | id | ) |
void DrawableManager::UpdateAll | ( | ) |
int DrawableManager::currentId = 0 |
std::list<Drawable*> DrawableManager::drawablePool |