YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
5
# include "
YAPOG/Graphics/Gui/Label.hpp
"
6
# include "
YAPOG/Graphics/Gui/HorizontalLayout.hpp
"
7
# include "
YAPOG/Graphics/Gui/VerticalLayout.hpp
"
8
# include "
YAPOG/Graphics/Texture.hpp
"
9
# include "
YAPOG/Game/Pokemon/Gender.hpp
"
10
11
# include "
Battle/BaseBattleWidget.hpp
"
12
13
namespace
yap
14
{
15
class
PictureBox;
16
}
// namespace yap
17
18
namespace
ycl
19
{
20
class
BattleInfoWidget
:
public
BaseBattleWidget
21
{
22
DISALLOW_COPY
(
BattleInfoWidget
);
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
:
45
yap::Label
nameLabel_
;
46
yap::Label
levelLabel_
;
48
51
yap::VerticalLayout
battleInfoBox_
;
52
yap::HorizontalLayout
firstLine_
;
53
yap::HorizontalLayout
nameBox_
;
54
yap::HorizontalLayout
levelAndGenderBox_
;
55
yap::VerticalLayout
levelBox_
;
56
yap::HorizontalLayout
genderBox_
;
58
61
yap::PictureBox
*
hpBarPictureBox_
;
62
yap::PictureBox
*
hpBarContent_
;
63
yap::PictureBox
*
genderPictureBox_
;
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
YAPOG.Client
include
Battle
BattleInfoWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1