YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
BeginWildBattlePhase.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_BEGINWILDBATTLEPHASE_HPP
2
# define YAPOG_CLIENT_BEGINWILDBATTLEPHASE_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/System/String.hpp
"
6
# include "
YAPOG/Graphics/IDrawable.hpp
"
7
8
# include "Battle/Phase/BeginBattlePhase.hpp"
9
10
namespace
yap
11
{
12
class
PhaseArgs;
13
}
// namespace yap
14
15
namespace
ycl
16
{
17
class
Battle;
18
class
BattleInterface;
19
20
class
BeginWildBattlePhase
21
:
public
BeginBattlePhase
22
{
23
public
:
24
BeginWildBattlePhase
(
Battle
& battle,
BattleInterface
& battleInterface);
25
virtual
~BeginWildBattlePhase
();
26
27
void
Init
();
28
31
virtual
void
HandleStart
(
yap::PhaseArgs
* args);
32
virtual
void
HandleUpdate
(
const
yap::Time
& dt);
33
virtual
void
HandleEnd
();
35
36
protected
:
37
virtual
void
HandleDraw
(
yap::IDrawingContext
& context);
38
virtual
void
HandleShow
(
bool
isVisible);
39
virtual
void
HandleChangeColor
(
const
sf::Color& color);
40
41
static
const
bool
DEFAULT_VISIBLE_STATE
;
42
static
const
sf::Color
DEFAULT_COLOR
;
43
44
bool
isVisible_
;
45
sf::Color
color_
;
46
47
private
:
48
void
UpdatePlayerTrainerBack
();
49
void
UpdateOpponentFront
();
50
51
yap::String
nextState_
;
52
53
static
const
float
GROUND_SPEED
;
54
static
const
yap::String
FISRT_STATE
;
55
};
56
}
// namespace ycl
57
58
#endif // YAPOG_CLIENT_BEGINWILDBATTLEPHASE_HPP
YAPOG.Client
include
Battle
Phase
BeginWildBattlePhase.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1