![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <EventManager.h>
Public Types | |
| using | Message = ::Message |
| using | Listener = std::function< void(const Message &)> |
Public Member Functions | |
| EventManager () | |
| ~EventManager () | |
| void | AddMessage (const Message &msg) |
| void | DispatchImmediate (const Message &msg) |
| void | Process () |
| void | Register (void *owner, EventType type, Listener callback) |
| template<typename T > | |
| void | Register (T *owner, EventType type) |
| void | Unregister (void *owner, EventType type) |
| void | UnregisterAll (void *owner) |
Static Public Member Functions | |
| static EventManager & | GetInstance () |
| static EventManager & | Get () |
Definition at line 13 of file EventManager.h.
| using EventManager::Listener = std::function<void(const Message&)> |
Definition at line 17 of file EventManager.h.
Definition at line 16 of file EventManager.h.
|
inline |
Definition at line 19 of file EventManager.h.
|
inline |
Definition at line 20 of file EventManager.h.
Definition at line 31 of file EventManager.h.
Definition at line 32 of file EventManager.h.
|
inlinestatic |
Definition at line 28 of file EventManager.h.
References GetInstance().
Referenced by AI_Player::AI_Player(), PanelManager::Initialize(), ObjectFactory::ObjectFactory(), AI_Player::~AI_Player(), and ObjectFactory::~ObjectFactory().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 23 of file EventManager.h.
References GetComponentTypeID_Static().
Referenced by Get().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 33 of file EventManager.h.
Definition at line 38 of file EventManager.h.
Definition at line 35 of file EventManager.h.
Referenced by AI_Player::AI_Player(), PanelManager::Initialize(), and ObjectFactory::ObjectFactory().
Here is the caller graph for this function:Definition at line 40 of file EventManager.h.
Referenced by ObjectFactory::~ObjectFactory().
Here is the caller graph for this function:Definition at line 41 of file EventManager.h.
Referenced by AI_Player::~AI_Player().
Here is the caller graph for this function: