YAPOG  0.0.1
Yet Another Pokemon Online Game
MapRootWidget.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_CLIENT_MAPROOTWIDGET_HPP
2 # define YAPOG_CLIENT_MAPROOTWIDGET_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 # include "YAPOG/Collection/Map.hpp"
7 
8 namespace ycl
9 {
10  class Map;
11  class Player;
12  class MapPlayerInfoPanel;
13 
15  {
17 
18  public:
19 
20  MapRootWidget ();
21 
22  virtual ~MapRootWidget ();
23 
24  void SetCurrentMap (Map* map);
25 
26  protected:
27 
28  Map& GetCurrentMap ();
29 
30  private:
31 
32  void AddPlayerInfoPanel (Player* player);
33  void RemovePlayerInfoPanel (Player* player);
34 
35  void Clear ();
36 
37  void HandleSetCurrentMap (Map* oldMap, Map* map);
38 
40 
42  };
43 } // namespace ycl
44 
45 #endif // YAPOG_CLIENT_MAPROOTWIDGET_HPP