YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PokemonMoveInfoWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_POKEMONMOVEINFOWIDGET_HPP
2
# define YAPOG_CLIENT_POKEMONMOVEINFOWIDGET_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
6
# include "
Gui/PokemonFrontInfoWidget.hpp
"
7
# include "
Gui/PokemonSingleMoveInfoWidget.hpp
"
8
# include "
Gui/IPokemonSummaryWidget.hpp
"
9
10
namespace
yap
11
{
12
class
PictureBox;
13
class
Label;
14
class
VerticalLayout;
15
}
16
17
namespace
ycl
18
{
19
class
Pokemon;
20
class
PokemonSingleMoveInfoWidget;
21
22
class
PokemonMoveInfoWidget
:
public
IPokemonSummaryWidget
23
{
24
public
:
25
PokemonMoveInfoWidget
();
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
*
level_
;
66
67
// PictureBoxes
68
yap::PictureBox
*
gender_
;
69
yap::PictureBox
*
spriteFront_
;
70
71
// Layouts
72
yap::VerticalLayout
*
mainLayout_
;
73
74
yap::HorizontalLayout
*
firstLine_
;
75
yap::VerticalLayout
*
firstLinePartRight_
;
76
77
PokemonFrontInfoWidget
pokemonFrontInfoWidget_
;
78
79
yap::collection::Array<PokemonSingleMoveInfoWidget*>
80
pokemonSingleMoveInfoWidgets_
;
81
82
};
83
}
// namespace ycl
84
85
#endif // YAPOG_CLIENT_POKEMONMOVEINFOWIDGET_HPP
YAPOG.Client
include
Gui
PokemonMoveInfoWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1