YAPOG  0.0.1
Yet Another Pokemon Online Game
PokemonTeamWidget.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_CLIENT_POKEMONTEAMWIDGET_HPP
2 # define YAPOG_CLIENT_POKEMONTEAMWIDGET_HPP
3 
4 # include "YAPOG/Macros.hpp"
18 
19 # include "Pokemon/Pokemon.hpp"
20 # include "Gui/PokemonInfoWidget.hpp"
21 
22 namespace yap
23 {
24  class GridMenu;
25 }
26 
27 namespace ycl
28 {
29  class PokemonTeam;
30  class PokemonInfoBox;
31  class PokemonInfoWidget;
32 
34  {
36 
37  public:
38  PokemonTeamWidget (const PokemonTeam& team);
39  void Init ();
40  virtual ~PokemonTeamWidget();
41  virtual bool IsFocusable () const;
42 
43  protected:
44  virtual yap::Vector2 HandleGetSize () const;
45  virtual void HandleMove (const yap::Vector2& offset);
46  virtual void HandleScale (const yap::Vector2& factor);
47 
48  virtual void HandleDraw (yap::IDrawingContext& context);
49 
50  virtual void HandleShow (bool isVisible);
51  virtual void HandleChangeColor (const sf::Color& color);
52 
53  virtual void HandleUpdate (const yap::Time& dt);
54 
55  virtual bool HandleOnEvent (const yap::GuiEvent& guiEvent);
56  private:
63 
64  };
65 } // namespace ycl
66 
67 #endif // YAPOG_CLIENT_POKEMONTEAMWIDGET_HPP