YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PokemonTeamWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_POKEMONTEAMWIDGET_HPP
2
# define YAPOG_CLIENT_POKEMONTEAMWIDGET_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/BaseWidget.hpp
"
6
# include "
YAPOG/Graphics/Vector2.hpp
"
7
# include "
YAPOG/Graphics/Gui/PictureBox.hpp
"
8
# include "
YAPOG/Graphics/Gui/VerticalLayout.hpp
"
9
# include "
YAPOG/Graphics/Gui/HorizontalLayout.hpp
"
10
# include "
YAPOG/Graphics/Gui/Label.hpp
"
11
# include "
YAPOG/System/StringHelper.hpp
"
12
# include "
YAPOG/Game/Pokemon/Gender.hpp
"
13
# include "
YAPOG/Collection/Array.hpp
"
14
# include "
YAPOG/Graphics/Gui/GuiEvent.hpp
"
15
# include "
YAPOG/Graphics/Game/Sprite/ISprite.hpp
"
16
# include "
YAPOG/Graphics/Game/Sprite/Sprite.hpp
"
17
# include "
YAPOG/Graphics/Gui/WidgetBackground.hpp
"
18
19
# include "Pokemon/Pokemon.hpp"
20
# include "
Gui/PokemonInfoWidget.hpp
"
21
22
namespace
yap
23
{
24
class
GridMenu;
25
}
26
27
namespace
ycl
28
{
29
class
PokemonTeam;
30
class
PokemonInfoBox;
31
class
PokemonInfoWidget;
32
33
class
PokemonTeamWidget
:
public
yap::BaseWidget
34
{
35
DISALLOW_COPY
(
PokemonTeamWidget
);
36
37
public
:
38
PokemonTeamWidget
(
const
PokemonTeam
& team);
39
void
Init
();
40
virtual
~PokemonTeamWidget
();
41
virtual
bool
IsFocusable
()
const
;
42
43
protected
:
44
virtual
yap::Vector2
HandleGetSize
()
const
;
45
virtual
void
HandleMove
(
const
yap::Vector2
& offset);
46
virtual
void
HandleScale
(
const
yap::Vector2
& factor);
47
48
virtual
void
HandleDraw
(
yap::IDrawingContext
& context);
49
50
virtual
void
HandleShow
(
bool
isVisible);
51
virtual
void
HandleChangeColor
(
const
sf::Color& color);
52
53
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
54
55
virtual
bool
HandleOnEvent
(
const
yap::GuiEvent
& guiEvent);
56
private
:
57
yap::Label
*
state_
;
58
yap::GridMenu
*
menu_
;
59
const
PokemonTeam
&
team_
;
60
yap::collection::Array<PokemonInfoBox*>
pokemonInfoBoxes_
;
61
yap::uint
index_
;
62
PokemonInfoWidget
pokemonInfoWidget_
;
63
64
};
65
}
// namespace ycl
66
67
#endif // YAPOG_CLIENT_POKEMONTEAMWIDGET_HPP
YAPOG.Client
include
Gui
PokemonTeamWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1