YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
MapEventQueue.cpp
Go to the documentation of this file.
1
#include "
YAPOG/Game/World/Map/MapEventQueue.hpp
"
2
3
namespace
yap
4
{
5
MapEventQueue::MapEventQueue
()
6
: events_ ()
7
{
8
}
9
10
void
MapEventQueue::AddEvent
(
MapEventContext
* event)
11
{
12
events_
.
Enqueue
(event);
13
}
14
15
MapEventContext
&
MapEventQueue::GetEvent
()
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
YAPOG
src
YAPOG
Game
World
Map
MapEventQueue.cpp
Generated on Mon Sep 17 2012 22:24:25 for YAPOG by
1.8.1.1