YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
TrainerCardWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_TRAINERCARDWIDGET_HPP
2
# define YAPOG_CLIENT_TRAINERCARDWIDGET_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/BaseWidget.hpp
"
6
7
namespace
yap
8
{
9
class
Label;
10
class
PictureBox;
11
class
VerticalLayout;
12
class
HorizontalLayout;
13
}
14
15
namespace
ycl
16
{
17
class
User;
18
19
class
TrainerCardWidget
:
public
yap::BaseWidget
20
{
21
DISALLOW_COPY
(
TrainerCardWidget
);
22
23
public
:
24
TrainerCardWidget
(
const
User
& user);
25
virtual
~TrainerCardWidget
();
26
27
void
Init
();
28
29
virtual
bool
IsFocusable
()
const
;
30
31
protected
:
32
void
Open
();
33
virtual
yap::Vector2
HandleGetSize
()
const
;
34
virtual
void
HandleMove
(
const
yap::Vector2
& offset);
35
virtual
void
HandleScale
(
const
yap::Vector2
& factor);
36
37
virtual
void
HandleDraw
(
yap::IDrawingContext
& context);
38
39
virtual
void
HandleShow
(
bool
isVisible);
40
virtual
void
HandleChangeColor
(
const
sf::Color& color);
41
42
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
43
44
virtual
bool
HandleOnEvent
(
const
yap::GuiEvent
& guiEvent);
45
46
private
:
47
const
User
&
user_
;
48
49
// Labels
50
yap::Label
*
uniqueIDLabel_
;
51
yap::Label
*
uniqueID_
;
52
yap::Label
*
nameLabel_
;
53
yap::Label
*
name_
;
54
yap::Label
*
moneyLabel_
;
55
yap::Label
*
money_
;
56
yap::Label
*
pokedexLabel_
;
57
yap::Label
*
pokedex_
;
58
yap::Label
*
gameTimeLabel_
;
59
yap::Label
*
gameTime_
;
60
61
// PïctureBoxes
62
yap::PictureBox
*
playerSprite_
;
63
64
// Layouts
65
yap::VerticalLayout
*
mainLayout_
;
66
67
yap::VerticalLayout
*
firstLine_
;
68
69
yap::HorizontalLayout
*
uniqueIDLayout_
;
70
71
yap::HorizontalLayout
*
secondLine_
;
72
73
yap::VerticalLayout
*
secondLinePartLeft_
;
74
75
yap::HorizontalLayout
*
nameLayout_
;
76
yap::HorizontalLayout
*
playerDataLayout_
;
77
yap::VerticalLayout
*
playerDataLabelsLayout_
;
78
yap::VerticalLayout
*
playerDataValuesLayout_
;
79
80
yap::VerticalLayout
*
secondLinePartRight_
;
81
82
yap::HorizontalLayout
*
playerSpriteLayout_
;
83
};
84
}
// namespace ycl
85
86
#endif // YAPOG_CLIENT_TRAINERCARDWIDGET_HPP
YAPOG.Client
include
Gui
TrainerCardWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1