YAPOG  0.0.1
Yet Another Pokemon Online Game
EndWildBattlePhase.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_CLIENT_ENDWILDBATTLEPHASE_HPP
2 # define YAPOG_CLIENT_ENDWILDBATTLEPHASE_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 # include "Battle/Phase/EndBattlePhase.hpp"
8 
9 namespace yap
10 {
11  class PhaseArgs;
12 } // namespace yap
13 
14 namespace ycl
15 {
16  class Battle;
17 
19  : public EndBattlePhase
20  {
21  public:
22  EndWildBattlePhase (Battle& battle);
23  virtual ~EndWildBattlePhase ();
24 
27  virtual void HandleStart (yap::PhaseArgs* args);
28  virtual void HandleUpdate (const yap::Time& dt);
29  virtual void HandleEnd ();
31 
32  protected:
33  virtual void HandleDraw (yap::IDrawingContext& context);
34  virtual void HandleShow (bool isVisible);
35  virtual void HandleChangeColor (const sf::Color& color);
36 
37  static const bool DEFAULT_VISIBLE_STATE;
38  static const sf::Color DEFAULT_COLOR;
39 
40  bool isVisible_;
41  sf::Color color_;
42  };
43 } // namespace ycl
44 
45 #endif // YAPOG_CLIENT_ENDWILDBATTLEPHASE_HPP