YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PokemonInfoWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_POKEMONINFOWIDGET_HPP
2
# define YAPOG_CLIENT_POKEMONINFOWIDGET_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/BaseWidget.hpp
"
6
7
# include "
Gui/IPokemonSummaryWidget.hpp
"
8
9
namespace
ycl
10
{
11
class
Pokemon;
12
13
class
PokemonInfoWidget
:
public
yap::BaseWidget
14
{
15
DISALLOW_COPY
(
PokemonInfoWidget
);
16
public
:
17
PokemonInfoWidget
();
18
~PokemonInfoWidget
();
19
20
void
Init
();
21
22
void
SetPokemon
(
Pokemon
* pokemon);
23
24
virtual
bool
IsFocusable
()
const
;
25
26
private
:
27
Pokemon
*
pokemon_
;
28
yap::UInt8
pageNumber_
;
29
yap::collection::Array<IPokemonSummaryWidget*>
pokemonInfoPages_
;
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
& context);
35
virtual
void
HandleShow
(
bool
isVisible);
36
virtual
void
HandleChangeColor
(
const
sf::Color& color);
37
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
38
virtual
bool
HandleOnEvent
(
const
yap::GuiEvent
& guiEvent);
39
40
};
41
}
// namespace ycl
42
43
#endif // YAPOG_CLIENT_POKEMONINFOWIDGET_HPP
YAPOG.Client
include
Gui
PokemonInfoWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1