Definition: drawable.hpp:13
virtual void Draw()
Definition: drawable.hpp:27
Drawable()
Sets the sprites' IDs.
Definition: drawable.cpp:8
virtual void Create()
Definition: drawable.hpp:25
virtual void Update()
Definition: drawable.hpp:26
virtual ~Drawable()=default
int GetID()
Definition: drawable.hpp:29
Definition: drawable.cpp:4
void DestroyDrawableFromID(int id)
Iterates through drawablePool and destroys the Drawable corresponding to the ID.
Definition: drawable.cpp:55
void UpdateAll()
Calls the Update() function for every Drawable in the drawablePool.
Definition: drawable.cpp:26
Drawable * GetDrawableFromID(int id)
Get the Drawable From ID object.
Definition: drawable.cpp:73
void CreateAll()
Calls the Create() function for every Drawable in the drawablePool.
Definition: drawable.cpp:18
void DestroyAllDrawables()
Destroys every Drawable in the drawablePool and clears drawablePool.
Definition: drawable.cpp:42
void DrawAll()
Calls the Draw() function for every Drawable in the drawablePool.
Definition: drawable.cpp:34