Manages the registration and processing of updatable GameObjects. More...
#include <UpdatableManager.h>
Public Types | |
using | StorageListRef = StorageList::iterator |
Type alias for the storage list iterator. | |
Public Member Functions | |
UpdatableManager (const UpdatableManager &)=delete | |
UpdatableManager & | operator= (const UpdatableManager &)=delete |
void | Register (Updatable *up) |
Registers an updatable GameObject. | |
void | Deregister (Updatable *up) |
Deregisters an updatable GameObject. | |
void | ProcessElements () |
Processes the update of all registered GameObjects. | |
Private Types | |
using | StorageList = std::list<Updatable*> |
Type alias for the storage list of updatable GameObjects. | |
Private Attributes | |
StorageList | storageList |
The storage list of updatable GameObjects. | |
Manages the registration and processing of updatable GameObjects.
The UpdatableManager class is responsible for managing the registration and processing of updatable GameObjects. It provides methods to register, deregister, and process the update of GameObjects.
void UpdatableManager::Deregister | ( | Updatable * | up | ) |
Deregisters an updatable GameObject.
up | Pointer to the updatable GameObject. |
void UpdatableManager::Register | ( | Updatable * | up | ) |
Registers an updatable GameObject.
up | Pointer to the updatable GameObject. |