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