YAPOG  0.0.1
Yet Another Pokemon Online Game
PokemonMoveInfoWidget.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_CLIENT_POKEMONMOVEINFOWIDGET_HPP
2 # define YAPOG_CLIENT_POKEMONMOVEINFOWIDGET_HPP
3 
4 # include "YAPOG/Macros.hpp"
5 
9 
10 namespace yap
11 {
12  class PictureBox;
13  class Label;
14  class VerticalLayout;
15 }
16 
17 namespace ycl
18 {
19  class Pokemon;
20  class PokemonSingleMoveInfoWidget;
21 
23  {
24  public:
26 
27  virtual void Init ();
28 
29  virtual void SetPokemon (const Pokemon& pokemon);
30 
33  /*
34  virtual void SetDefaultColor (const sf::Color& color);
35  virtual void AddDrawable (yap::IDrawable& drawable);
36  virtual void AddChild (yap::IWidget& child);
37  virtual yap::IWidget& GetRoot () const;
38  virtual yap::WidgetBorder* GetBorder () const;
39  virtual void SetParent (yap::IWidget& parent);
40  virtual void SetPadding (const yap::Padding& padding);
41  virtual void SetBackground (yap::WidgetBackground& background);
42  virtual void SetBorder (yap::WidgetBorder& border, yap::uint width);
43  virtual void Refresh ();
44  */
45  virtual bool IsFocusable () const;
46  /*
47  virtual void SetFocused (bool state);
48  virtual void SetEnable (bool enable);
49  virtual void Open ();
50  virtual void Close ();
51  */
53 
54  protected:
55  virtual void HandleMove (const yap::Vector2& offset);
56  virtual void HandleScale (const yap::Vector2& factor);
57  virtual void HandleDraw (yap::IDrawingContext& offset);
58  virtual void HandleShow (bool isVisible);
59  virtual void HandleChangeColor (const sf::Color& color);
60  virtual void HandleUpdate (const yap::Time& dt);
61 
62  private:
63  // Labels
66 
67  // PictureBoxes
70 
71  // Layouts
73 
76 
78 
81 
82  };
83 } // namespace ycl
84 
85 #endif // YAPOG_CLIENT_POKEMONMOVEINFOWIDGET_HPP