#include <SystemManager.h>
Inheritance diagram for Odyssey::SystemManager:
Public Member Functions | |
SystemWeakPtr | createSystem (const String &typeID, const String &name) |
Creates a new, dynamic system with the given name. | |
SystemWeakPtr | getSystem (const String &name) const |
Returns the system reference with the given name. | |
SystemWeakPtr | getSystem (size_t index) const |
Returns the system at the given index. | |
void | _notifyUpdateChange (System *system, bool active) |
Internal method for updating active update status. | |
void | update () |
Update all the active systems. | |
void | updateAll () |
Update all systems, regardless of active status. | |
void | sendMessageToAll (const Message &msg) |
Sends the given message to all systems. | |
void | postMessageToAll (const Message &msg) |
Posts the given message to all systems. | |
Static Public Member Functions | |
static SystemManager & | getSingleton () |
Returns the one and only instance of this manager. |
This class manages the Systems that exist in the framework. It holds ownership over them and exposed methods for creating and updating them.
|
Internal method for updating active update status.
|
|
Creates a new, dynamic system with the given name.
|
|
Returns the one and only instance of this manager.
|
|
Returns the system at the given index.
|
|
Returns the system reference with the given name.
|
|
Posts the given message to all systems.
|
|
Sends the given message to all systems.
|
|
Update all the active systems.
|
|
Update all systems, regardless of active status.
|