YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PokemonSingleMoveInfoWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_POKEMONSINGLEMOVENFOWIDGET_HPP
2
# define YAPOG_CLIENT_POKEMONSINGLEMOVENFOWIDGET_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
class
PokemonMove;
14
}
15
16
namespace
ycl
17
{
18
class
Pokemon;
19
20
class
PokemonSingleMoveInfoWidget
:
public
yap::BaseWidget
21
{
22
public
:
23
PokemonSingleMoveInfoWidget
();
24
25
void
Init
();
26
27
void
SetPokemonMove
(
const
yap::PokemonMove
& move);
28
29
virtual
bool
IsFocusable
()
const
;
30
31
protected
:
32
virtual
void
HandleMove
(
const
yap::Vector2
& offset);
33
virtual
void
HandleScale
(
const
yap::Vector2
& factor);
34
virtual
void
HandleDraw
(
yap::IDrawingContext
& offset);
35
virtual
void
HandleShow
(
bool
isVisible);
36
virtual
void
HandleChangeColor
(
const
sf::Color& color);
37
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
38
39
private
:
40
// Labels
41
yap::Label
*
name_
;
42
yap::Label
*
pp_
;
43
44
// PictureBoxes
45
yap::PictureBox
*
type_
;
46
47
// Layouts
48
yap::VerticalLayout
*
mainLayout_
;
49
yap::HorizontalLayout
*
nameAndTypeLayout_
;
50
yap::VerticalLayout
*
ppLayout_
;
51
};
52
}
// namespace ycl
53
54
#endif // YAPOG_CLIENT_POKEMONSINGLEMOVENFOWIDGET_HPP
YAPOG.Client
include
Gui
PokemonSingleMoveInfoWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1