YAPOG  0.0.1
Yet Another Pokemon Online Game
BattleSpawnerArea.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_BATTLESPAWNERAREA_HPP
2 # define YAPOG_BATTLESPAWNERAREA_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 namespace yap
8 {
10  {
12 
13  public:
14 
15  virtual ~BattleSpawnerArea ();
16 
17  void InitArea (uint width, uint height);
18 
19  const uint& GetWidth () const;
20  const uint& GetHeight () const;
21 
22  protected:
23 
24  explicit BattleSpawnerArea (const ID& id);
25 
27 
28  void SetBattleSpawningArea (const FloatRect& battleSpawningArea);
29 
30  virtual void HandleInitArea (uint width, uint height);
31 
32  static const uint DEFAULT_CELL_SIZE;
33 
34  private:
35 
36  void InitBattleSpawningEvent (const FloatRect& battleSpawningArea);
37 
38  static const uint DEFAULT_WIDTH;
39  static const uint DEFAULT_HEIGHT;
40 
43 
46 
48  };
49 } // namespace yap
50 
51 #endif // YAPOG_BATTLESPAWNERAREA_HPP