LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg::EventQueue Class Reference

Holds a queue of Event objects.

#include <nrg_event.h>

Public Member Functions

 EventQueue ()
 Default Constructor.
 
void pushEvent (const Event &e)
 Add an event to the end of the queue.
 
bool pollEvent (Event &e)
 Place the Event at the head of the queue into e - return true if this happened or false if the queue is empty.
 
void clear ()
 Removes all Events from the queue.
 

The documentation for this class was generated from the following file: