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