YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PokemonInfoBox.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_INFOBOX_HPP
2
# define YAPOG_CLIENT_INFOBOX_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/BaseWidget.hpp
"
6
7
namespace
yap
8
{
9
class
PictureBox;
10
class
Label;
11
class
VerticalLayout;
12
}
13
14
namespace
ycl
15
{
16
class
Pokemon;
17
18
class
PokemonInfoBox
:
public
yap::BaseWidget
19
{
20
public
:
21
PokemonInfoBox
(
22
bool
isMainPokemon,
23
const
Pokemon
& pokemon);
24
25
void
SetIsSelected
(
bool
value);
26
27
virtual
bool
IsFocusable
()
const
;
28
29
protected
:
30
virtual
void
HandleMove
(
const
yap::Vector2
& offset);
31
virtual
void
HandleScale
(
const
yap::Vector2
& factor);
32
virtual
void
HandleDraw
(
yap::IDrawingContext
& offset);
33
virtual
void
HandleShow
(
bool
isVisible);
34
virtual
void
HandleChangeColor
(
const
sf::Color& color);
35
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
36
37
private
:
38
const
Pokemon
&
pokemon_
;
39
bool
isMainPokemon_
;
40
bool
isSelected_
;
41
yap::WidgetBackground
*
normalBackground_
;
42
yap::WidgetBackground
*
selectedBackground_
;
43
yap::PictureBox
*
icon_
;
44
yap::Label
*
name_
;
45
yap::Label
*
level_
;
46
yap::PictureBox
*
gender_
;
47
yap::PictureBox
*
hpBar_
;
48
yap::PictureBox
*
hpBarContent_
;
49
yap::Label
*
hpLabel_
;
50
51
};
52
}
// namespace ycl
53
54
#endif // YAPOG_CLIENT_INFOBOX_HPP
YAPOG.Client
include
Gui
PokemonInfoBox.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1