YAPOG  0.0.1
Yet Another Pokemon Online Game
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"
6 # include "YAPOG/Collection/Map.hpp"
7 # include "YAPOG/Game/ID.hpp"
8 
9 namespace yap
10 {
11  class DynamicWorldObject;
12 
14  {
16 
21 
22  public:
23 
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 
46  };
47 } // namespace yap
48 
49 #endif // YAPOG_DYNAMICWORLDOBJECTCOLLECTION_HPP