YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PokemonHPBarWidget.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_POKEMONHPBARWIDGET_HPP
2
# define YAPOG_CLIENT_POKEMONHPBARWIDGET_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/BaseWidget.hpp
"
6
7
namespace
yap
8
{
9
class
PictureBox;
10
class
HorizontalLayout;
11
}
12
13
namespace
ycl
14
{
15
class
Pokemon;
16
17
class
PokemonHPBarWidget
:
public
yap::BaseWidget
18
{
19
public
:
20
PokemonHPBarWidget
();
21
22
void
Init
();
23
24
void
SetPokemon
(
const
Pokemon
& pokemon);
25
26
virtual
bool
IsFocusable
()
const
;
27
28
protected
:
29
virtual
void
HandleMove
(
const
yap::Vector2
& offset);
30
virtual
void
HandleScale
(
const
yap::Vector2
& factor);
31
virtual
void
HandleDraw
(
yap::IDrawingContext
& offset);
32
virtual
void
HandleShow
(
bool
isVisible);
33
virtual
void
HandleChangeColor
(
const
sf::Color& color);
34
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
35
36
private
:
37
yap::PictureBox
*
experienceBarContent_
;
38
yap::HorizontalLayout
*
mainLayout_
;
39
40
};
41
}
// namespace ycl
42
43
#endif // YAPOG_CLIENT_POKEMONHPBARWIDGET_HPP
YAPOG.Client
include
Gui
PokemonHPBarWidget.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1