SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
UpdatableManager Class Reference

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
 
UpdatableManageroperator= (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.
 

Detailed Description

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.

Member Function Documentation

◆ Deregister()

void UpdatableManager::Deregister ( Updatable * up)

Deregisters an updatable GameObject.

Parameters
upPointer to the updatable GameObject.
Here is the call graph for this function:

◆ Register()

void UpdatableManager::Register ( Updatable * up)

Registers an updatable GameObject.

Parameters
upPointer to the updatable GameObject.
Here is the call graph for this function:

The documentation for this class was generated from the following files: