YAPOG  0.0.1
Yet Another Pokemon Online Game
MapEventQueue.cpp
Go to the documentation of this file.
2 
3 namespace yap
4 {
6  : events_ ()
7  {
8  }
9 
11  {
12  events_.Enqueue (event);
13  }
14 
16  {
17  MapEventContext* event = nullptr;
18 
19  return *events_.Dequeue (event);
20  }
21 
22  bool MapEventQueue::IsEmpty () const
23  {
24  return events_.IsEmpty ();
25  }
26 } // namespace yap