|
group2 0.1.0
CSE 125 Group 2
|
FIFO queue of gameplay events awaiting processing each tick. More...
#include <EventQueue.hpp>
Public Member Functions | |
| bool | isEmpty () |
| Check whether the queue contains no events. | |
| void | enqueue (Event event) |
| Push an event onto the back of the queue. | |
| Event | dequeue () |
| Remove and return the front event. | |
| int | size () |
| Return the number of pending events. | |
FIFO queue of gameplay events awaiting processing each tick.
| Event EventQueue::dequeue | ( | ) |
Remove and return the front event.
| void EventQueue::enqueue | ( | Event | event | ) |
Push an event onto the back of the queue.
| event | The event to enqueue. |
| bool EventQueue::isEmpty | ( | ) |
Check whether the queue contains no events.
| int EventQueue::size | ( | ) |
Return the number of pending events.