![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <EventQueue.h>
Public Member Functions | |
| EventQueue () | |
| ~EventQueue ()=default | |
| void | Push (const Message &msg) |
| void | BeginFrame () |
| const std::vector< Message > & | GetEvents () const |
| const std::vector< size_t > & | GetDomainIndices (EventDomain domain) const |
| template<typename Func > | |
| void | ForEachDomainEvent (EventDomain domain, Func &&callback) const |
Static Public Member Functions | |
| static EventQueue & | GetInstance () |
| static EventQueue & | Get () |
Private Attributes | |
| std::vector< Message > | m_readEvents |
| std::vector< Message > | m_writeEvents |
| std::array< std::vector< size_t >, static_cast< int >(EventDomain::All)+1 > | m_readDomainIdx |
| std::array< std::vector< size_t >, static_cast< int >(EventDomain::All)+1 > | m_writeDomainIdx |
| std::mutex | m_writeMutex |
Definition at line 11 of file EventQueue.h.
|
inline |
Definition at line 14 of file EventQueue.h.
References All, GetComponentTypeID_Static(), m_readDomainIdx, m_readEvents, m_writeDomainIdx, and m_writeEvents.
Here is the call graph for this function:
|
default |
|
inline |
Definition at line 56 of file EventQueue.h.
References All, GetComponentTypeID_Static(), m_readDomainIdx, m_readEvents, m_writeDomainIdx, m_writeEvents, and m_writeMutex.
Referenced by World::Process().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 93 of file EventQueue.h.
References GetComponentTypeID_Static(), GetDomainIndices(), and m_readEvents.
Here is the call graph for this function:
|
inlinestatic |
Definition at line 34 of file EventQueue.h.
References GetInstance().
Referenced by VideoGame::AddPlayerEntity(), CameraEventHandler::ClearCameraBounds(), AIEvents::EmitDamageDealt(), AIEvents::EmitExplosion(), AIEvents::EmitNoise(), JoystickManager::HandleEvent(), MouseManager::PostButtonEvent(), JoystickManager::PostJoystickAxisEvent(), JoystickManager::PostJoystickButtonEvent(), JoystickManager::PostJoystickConnectedEvent(), KeyboardManager::PostKeyEvent(), MouseManager::PostMotionEvent(), World::Process(), InputEventConsumeSystem::Process(), GameEventConsumeSystem::Process(), UIEventConsumeSystem::Process(), CameraEventConsumeSystem::Process(), AIStimuliSystem::Process(), VideoGame::RegisterLoadedPlayerEntity(), CameraEventHandler::ResetCamera(), CameraEventHandler::RotateCameraTo(), CameraEventHandler::StopCameraShake(), CameraEventHandler::TeleportCamera(), CameraEventHandler::TriggerCameraShake(), CameraEventHandler::UnfollowTarget(), and CameraEventHandler::ZoomCameraTo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 80 of file EventQueue.h.
References All, GetComponentTypeID_Static(), and m_readDomainIdx.
Referenced by ForEachDomainEvent().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 73 of file EventQueue.h.
References m_readEvents.
|
inlinestatic |
Definition at line 29 of file EventQueue.h.
References GetComponentTypeID_Static().
Referenced by Get().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 37 of file EventQueue.h.
References All, GetComponentTypeID_Static(), m_writeDomainIdx, m_writeEvents, m_writeMutex, and push_back().
Referenced by VideoGame::AddPlayerEntity(), CameraEventHandler::ClearCameraBounds(), AIEvents::EmitDamageDealt(), AIEvents::EmitExplosion(), AIEvents::EmitNoise(), JoystickManager::HandleEvent(), MouseManager::PostButtonEvent(), JoystickManager::PostJoystickAxisEvent(), JoystickManager::PostJoystickButtonEvent(), JoystickManager::PostJoystickConnectedEvent(), KeyboardManager::PostKeyEvent(), MouseManager::PostMotionEvent(), VideoGame::RegisterLoadedPlayerEntity(), CameraEventHandler::ResetCamera(), CameraEventHandler::RotateCameraTo(), CameraEventHandler::StopCameraShake(), CameraEventHandler::TeleportCamera(), CameraEventHandler::TriggerCameraShake(), CameraEventHandler::UnfollowTarget(), and CameraEventHandler::ZoomCameraTo().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 113 of file EventQueue.h.
Referenced by BeginFrame(), EventQueue(), and GetDomainIndices().
|
private |
Definition at line 108 of file EventQueue.h.
Referenced by BeginFrame(), EventQueue(), ForEachDomainEvent(), and GetEvents().
|
private |
Definition at line 114 of file EventQueue.h.
Referenced by BeginFrame(), EventQueue(), and Push().
|
private |
Definition at line 109 of file EventQueue.h.
Referenced by BeginFrame(), EventQueue(), and Push().
|
private |
Definition at line 116 of file EventQueue.h.
Referenced by BeginFrame(), and Push().