YAPOG  0.0.1
Yet Another Pokemon Online Game
PokemonExperienceBarWidget.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_CLIENT_POKEMONEXPERIENCEBARWIDGET_HPP
2 # define YAPOG_CLIENT_POKEMONEXPERIENCEBARWIDGET_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 namespace yap
8 {
9  class PictureBox;
10  class HorizontalLayout;
11 }
12 
13 namespace ycl
14 {
15  class Pokemon;
16 
18  {
19  public:
21 
22  void Init ();
23 
24  void SetPokemon (const Pokemon& pokemon);
25 
26  virtual bool IsFocusable () const;
27 
28  protected:
29  virtual void HandleMove (const yap::Vector2& offset);
30  virtual void HandleScale (const yap::Vector2& factor);
31  virtual void HandleDraw (yap::IDrawingContext& offset);
32  virtual void HandleShow (bool isVisible);
33  virtual void HandleChangeColor (const sf::Color& color);
34  virtual void HandleUpdate (const yap::Time& dt);
35 
36  private:
39 
40  };
41 } // namespace ycl
42 
43 #endif // YAPOG_CLIENT_POKEMONEXPERIENCEBARWIDGET_HPP