YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
DynamicWorldObjectCollection.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_DYNAMICWORLDOBJECTCOLLECTION_HPP
2
# define YAPOG_DYNAMICWORLDOBJECTCOLLECTION_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Game/IUpdateable.hpp
"
6
# include "
YAPOG/Collection/Map.hpp
"
7
# include "
YAPOG/Game/ID.hpp
"
8
9
namespace
yap
10
{
11
class
DynamicWorldObject;
12
13
class
YAPOG_LIB
DynamicWorldObjectCollection
:
public
IUpdateable
14
{
15
DISALLOW_COPY
(
DynamicWorldObjectCollection
);
16
17
typedef
collection::Map<ID, DynamicWorldObject*>
InnerCollectionType
;
18
typedef
InnerCollectionType::SizeType
SizeType
;
19
typedef
InnerCollectionType::ItType
ItType
;
20
typedef
InnerCollectionType::ConstItType
ConstItType
;
21
22
public
:
23
24
DynamicWorldObjectCollection
();
25
~
DynamicWorldObjectCollection
();
26
27
ItType
begin ();
28
ConstItType
begin ()
const
;
29
ItType
end ();
30
ConstItType
end ()
const
;
31
32
SizeType
Count ()
const
;
33
34
void
AddObject (
DynamicWorldObject
*
object
);
35
void
RemoveObject (
const
ID
& worldID);
36
DynamicWorldObject
& GetObject (
const
ID
& worldID);
37
40
virtual
void
Update (
const
Time
& dt);
42
43
private
:
44
45
collection::Map<ID, DynamicWorldObject*>
objects_
;
46
};
47
}
// namespace yap
48
49
#endif // YAPOG_DYNAMICWORLDOBJECTCOLLECTION_HPP
YAPOG
include
YAPOG
Game
World
Map
DynamicWorldObjectCollection.hpp
Generated on Mon Sep 17 2012 22:24:23 for YAPOG by
1.8.1.1