30 std::queue<Event> events;
Client Event structure to be consumed by server game loop.
FIFO queue of gameplay events awaiting processing each tick.
Definition EventQueue.hpp:11
void enqueue(Event event)
Push an event onto the back of the queue.
Definition EventQueue.cpp:13
int size()
Return the number of pending events.
Definition EventQueue.cpp:28
bool isEmpty()
Check whether the queue contains no events.
Definition EventQueue.cpp:8
Event dequeue()
Remove and return the front event.
Definition EventQueue.cpp:18
A single gameplay event produced by network input processing.
Definition Event.hpp:10