YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PokemonStatsInfoWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_POKEMONSTATSINFOWIDGET_HPP
2
# define YAPOG_CLIENT_POKEMONSTATSINFOWIDGET_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
6
# include "
Gui/PokemonFrontInfoWidget.hpp
"
7
# include "
Gui/PokemonExperienceBarWidget.hpp
"
8
# include "
Gui/IPokemonSummaryWidget.hpp
"
9
10
namespace
ycl
11
{
12
class
Pokemon;
13
14
class
PokemonStatsInfoWidget
:
public
IPokemonSummaryWidget
15
{
16
public
:
17
PokemonStatsInfoWidget
();
18
19
virtual
void
Init
();
20
21
virtual
void
SetPokemon
(
const
Pokemon
& pokemon);
22
25
/*
26
virtual void SetDefaultColor (const sf::Color& color);
27
virtual void AddDrawable (yap::IDrawable& drawable);
28
virtual void AddChild (yap::IWidget& child);
29
virtual yap::IWidget& GetRoot () const;
30
virtual yap::WidgetBorder* GetBorder () const;
31
virtual void SetParent (yap::IWidget& parent);
32
virtual void SetPadding (const yap::Padding& padding);
33
virtual void SetBackground (yap::WidgetBackground& background);
34
virtual void SetBorder (yap::WidgetBorder& border, yap::uint width);
35
virtual void Refresh ();
36
*/
37
virtual
bool
IsFocusable
()
const
;
38
/*
39
virtual void SetFocused (bool state);
40
virtual void SetEnable (bool enable);
41
virtual void Open ();
42
virtual void Close ();
43
*/
45
46
protected
:
47
virtual
void
HandleMove
(
const
yap::Vector2
& offset);
48
virtual
void
HandleScale
(
const
yap::Vector2
& factor);
49
virtual
void
HandleDraw
(
yap::IDrawingContext
& offset);
50
virtual
void
HandleShow
(
bool
isVisible);
51
virtual
void
HandleChangeColor
(
const
sf::Color& color);
52
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
53
54
private
:
55
// Labels
56
yap::Label
*
hp_
;
57
yap::Label
*
attack_
;
58
yap::Label
*
defense_
;
59
yap::Label
*
specialAttack_
;
60
yap::Label
*
specialDefense_
;
61
yap::Label
*
speed_
;
62
yap::Label
*
experiencePointLabel_
;
63
yap::Label
*
experiencePoint_
;
64
yap::Label
*
nextLevelPointLabel_
;
65
yap::Label
*
nextLevelPoint_
;
66
67
// PictureBoxes
68
yap::PictureBox
*
type1_
;
69
yap::PictureBox
*
type2_
;
70
71
// Layouts
72
yap::VerticalLayout
*
mainLayout_
;
73
74
yap::HorizontalLayout
*
firstLine_
;
75
76
yap::VerticalLayout
*
firstLinePartRight_
;
77
yap::VerticalLayout
*
hpLayout_
;
78
yap::VerticalLayout
*
statsLayout_
;
79
80
yap::VerticalLayout
*
experienceLayout_
;
81
yap::HorizontalLayout
*
experiencePointLayout_
;
82
yap::VerticalLayout
*
experiencePointLabelLayout_
;
83
yap::VerticalLayout
*
experiencePointNumberLayout_
;
84
yap::HorizontalLayout
*
nextLevelPointLayout_
;
85
yap::VerticalLayout
*
nextLevelPointLabelLayout_
;
86
yap::VerticalLayout
*
nextLevelPointNumberLayout_
;
87
88
yap::VerticalLayout
*
capacityAndExperienceGlobalLayout_
;
89
yap::HorizontalLayout
*
capacityAndExperienceLayout_
;
90
yap::VerticalLayout
*
capacityLayout_
;
91
yap::VerticalLayout
*
experienceBarLayout_
;
92
93
PokemonFrontInfoWidget
pokemonFrontInfoWidget_
;
94
PokemonExperienceBarWidget
experienceBarWidget_
;
95
};
96
}
// namespace ycl
97
98
#endif // YAPOG_CLIENT_POKEMONSTATSINFOWIDGET_HPP
YAPOG.Client
include
Gui
PokemonStatsInfoWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1