YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PokemonFrontInfoWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_POKEMONFRONTINFOWIDGET_HPP
2
# define YAPOG_CLIENT_POKEMONFRONTINFOWIDGET_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
HorizontalLayout;
12
class
VerticalLayout;
13
}
14
15
namespace
ycl
16
{
17
class
Pokemon;
18
19
class
PokemonFrontInfoWidget
:
public
yap::BaseWidget
20
{
21
public
:
22
PokemonFrontInfoWidget
();
23
24
void
Init
();
25
26
void
SetPokemon
(
const
Pokemon
& pokemon);
27
28
virtual
bool
IsFocusable
()
const
;
29
30
protected
:
31
virtual
void
HandleMove
(
const
yap::Vector2
& offset);
32
virtual
void
HandleScale
(
const
yap::Vector2
& factor);
33
virtual
void
HandleDraw
(
yap::IDrawingContext
& offset);
34
virtual
void
HandleShow
(
bool
isVisible);
35
virtual
void
HandleChangeColor
(
const
sf::Color& color);
36
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
37
38
private
:
39
// Labels
40
yap::Label
*
name_
;
41
yap::Label
*
level_
;
42
43
// PictureBoxes
44
yap::PictureBox
*
gender_
;
45
yap::PictureBox
*
spriteFront_
;
46
47
// Layouts
48
yap::VerticalLayout
*
mainLayout_
;
49
yap::VerticalLayout
*
levelLayout_
;
50
yap::VerticalLayout
*
nameLayout_
;
51
yap::HorizontalLayout
*
genderLayout_
;
52
yap::HorizontalLayout
*
levelNameGenderLayout_
;
53
yap::VerticalLayout
*
spriteFrontLayout_
;
54
55
// Sprite
56
yap::ISprite
*
genderMaleIcon_
;
57
yap::ISprite
*
genderFemaleIcon_
;
58
59
};
60
}
// namespace ycl
61
62
#endif // YAPOG_CLIENT_POKEMONFRONTINFOWIDGET_HPP
YAPOG.Client
include
Gui
PokemonFrontInfoWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1