Корабът Радецки - Eight ball pool v 1.0
The documnetation for our physics-themed project.
DrawableManager Namespace Reference

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...
 
DrawableGetDrawableFromID (int id)
 Get the Drawable From ID object. More...
 

Variables

std::list< Drawable * > drawablePool
 
int currentId = 0
 

Function Documentation

◆ CreateAll()

void DrawableManager::CreateAll ( )

Calls the Create() function for every Drawable in the drawablePool.

◆ DestroyAllDrawables()

void DrawableManager::DestroyAllDrawables ( )

Destroys every Drawable in the drawablePool and clears drawablePool.

◆ DestroyDrawableFromID()

void DrawableManager::DestroyDrawableFromID ( int  id)

Iterates through drawablePool and destroys the Drawable corresponding to the ID.

Parameters
idThis describes the sprite's id

◆ DrawAll()

void DrawableManager::DrawAll ( )

Calls the Draw() function for every Drawable in the drawablePool.

◆ GetDrawableFromID()

Drawable * DrawableManager::GetDrawableFromID ( int  id)

Get the Drawable From ID object.

Iterates through drawablePool and gets the Drawable corresponding to the ID (returns nullptr if ID is non-existent)

Parameters
idThis describes the sprite's id
Returns
Drawable*

◆ UpdateAll()

void DrawableManager::UpdateAll ( )

Calls the Update() function for every Drawable in the drawablePool.

Variable Documentation

◆ currentId

int DrawableManager::currentId = 0

◆ drawablePool

std::list<Drawable*> DrawableManager::drawablePool