YAPOG  0.0.1
Yet Another Pokemon Online Game
PokedexWidget.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_CLIENT_WIDGETPOKEDEX_HPP
2 # define YAPOG_CLIENT_WIDGETPOKEDEX_HPP
3 
4 # include "YAPOG/Macros.hpp"
7 
8 namespace yap
9 {
10  class Pokedex;
11  class PictureBox;
12  class PokemonInfo;
13  class Menu;
14 }
15 
16 namespace ycl
17 {
18  class PokedexCompositeWidget;
19 
21  {
23 
24  public:
25 
26  PokedexWidget (yap::Pokedex* pokedex);
27  void Init ();
28  virtual ~PokedexWidget();
29  virtual bool IsFocusable () const;
31 
32  protected:
33  virtual yap::Vector2 HandleGetSize () const;
34  virtual void HandleMove (const yap::Vector2& offset);
35  virtual void HandleScale (const yap::Vector2& factor);
36 
37  virtual void HandleDraw (yap::IDrawingContext& context);
38 
39  virtual void HandleShow (bool isVisible);
40  virtual void HandleChangeColor (const sf::Color& color);
41 
42  virtual void HandleUpdate (const yap::Time& dt);
43 
44  virtual bool HandleOnEvent (const yap::GuiEvent& guiEvent);
45 
46  private:
47  void RefreshAfterAdd ();
57 
58  };
59 } // namespace ycl
60 
61 #endif // YAPOG_CLIENT_WIDGETPOKEDEX_HPP