YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PokedexWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_WIDGETPOKEDEX_HPP
2
# define YAPOG_CLIENT_WIDGETPOKEDEX_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/BaseWidget.hpp
"
6
# include "
YAPOG/Graphics/Vector2.hpp
"
7
8
namespace
yap
9
{
10
class
Pokedex;
11
class
PictureBox;
12
class
PokemonInfo;
13
class
Menu;
14
}
15
16
namespace
ycl
17
{
18
class
PokedexCompositeWidget;
19
20
class
PokedexWidget
:
public
yap::BaseWidget
21
{
22
DISALLOW_COPY
(
PokedexWidget
);
23
24
public
:
25
26
PokedexWidget
(
yap::Pokedex
* pokedex);
27
void
Init
();
28
virtual
~PokedexWidget
();
29
virtual
bool
IsFocusable
()
const
;
30
yap::PokemonInfo
*
GetActivatedPokemon
()
const
;
31
32
protected
:
33
virtual
yap::Vector2
HandleGetSize
()
const
;
34
virtual
void
HandleMove
(
const
yap::Vector2
& offset);
35
virtual
void
HandleScale
(
const
yap::Vector2
& factor);
36
37
virtual
void
HandleDraw
(
yap::IDrawingContext
& context);
38
39
virtual
void
HandleShow
(
bool
isVisible);
40
virtual
void
HandleChangeColor
(
const
sf::Color& color);
41
42
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
43
44
virtual
bool
HandleOnEvent
(
const
yap::GuiEvent
& guiEvent);
45
46
private
:
47
void
RefreshAfterAdd
();
48
yap::Pokedex
*
pokedex_
;
49
yap::PictureBox
*
boxInfoContent_
;
50
yap::Menu
*
menu_
;
51
yap::PokemonInfo
*
validatedPokemon_
;
52
yap::HorizontalLayout
*
firstHLayout_
;
53
yap::VerticalLayout
*
firstVLayout_
;
54
PokedexCompositeWidget
*
pokedexInfo_
;
55
yap::Label
*
pokSeen_
;
56
yap::Label
*
pokCaught_
;
57
58
};
59
}
// namespace ycl
60
61
#endif // YAPOG_CLIENT_WIDGETPOKEDEX_HPP
YAPOG.Client
include
Gui
PokedexWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1