YAPOG  0.0.1
Yet Another Pokemon Online Game
BattleInfoWidget.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_CLIENT_BATTLEINFOWIDGET_HPP
2 # define YAPOG_CLIENT_BATTLEINFOWIDGET_HPP
3 
4 # include "YAPOG/Macros.hpp"
10 
12 
13 namespace yap
14 {
15  class PictureBox;
16 } // namespace yap
17 
18 namespace ycl
19 {
21  {
23 
24  public:
25  BattleInfoWidget (const yap::Padding& widgetPadding);
26 
27  virtual void Init ();
28 
29  void UpdateHPColor (int value);
30  void UpdateHPSize (int value);
31 
34  void SetName (const yap::String& value);
35  void SetLevel (int value);
36  void SetGender (const yap::Gender& value);
38 
39  virtual void HandleDraw (yap::IDrawingContext& context);
40  virtual yap::Vector2 HandleGetSize () const;
41 
42  protected:
48 
58 
65 
66  static const sf::Color DEFAULT_HP_COLOR_GOOD;
67  static const sf::Color DEFAULT_HP_COLOR_MEDIUM;
68  static const sf::Color DEFAULT_HP_COLOR_BAD;
69  static const float MAX_HP_BAR_SIZE;
70  };
71 } // namespace ycl
72 
73 #endif // YAPOG_CLIENT_BATTLEINFOWIDGET_HPP