YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
GameplayScreen.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_GAMEPLAYSCREEN_HPP
2
# define YAPOG_CLIENT_GAMEPLAYSCREEN_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Game/World/Map/Physics/CharacterMoveController.hpp
"
6
# include "
YAPOG/Graphics/ProgressiveCameraController.hpp
"
7
# include "
YAPOG/System/Time/Timer.hpp
"
8
9
# include "
GameScreen/BaseScreen.hpp
"
10
# include "World/World.hpp"
11
12
namespace
yap
13
{
14
struct
IWorldDrawingPolicy;
15
16
class
GameWorldGuiManager;
17
}
// namespace yap
18
19
namespace
ycl
20
{
21
class
Player;
22
class
GameGuiManager;
23
class
GameMainMenu;
24
class
PokedexCompositeWidget;
25
class
PokedexWidget;
26
class
PokemonTeamWidget;
27
class
ChatWidget;
28
class
MapRootWidget;
29
class
TrainerCardWidget;
30
31
class
GameplayScreen
:
public
BaseScreen
32
{
33
DISALLOW_COPY
(
GameplayScreen
);
34
35
public
:
36
37
explicit
GameplayScreen
(
yap::IDrawingContext
& context);
38
virtual
~GameplayScreen
();
39
40
protected
:
41
42
virtual
void
HandleInit
();
43
44
virtual
void
HandleRun
(
45
const
yap::Time
& dt,
46
yap::IDrawingContext
& context);
47
48
virtual
bool
HandleOnEvent
(
const
yap::GuiEvent
& guiEvent);
49
virtual
void
HandleActivate
();
50
virtual
void
HandleDeactivate
();
51
52
private
:
53
54
Map
&
GetCurrentMap
();
55
void
SetCurrentMap
(
Map
& map);
56
void
SetPlayer
(
Player
* player);
57
58
void
SetPlayerName
();
59
60
void
UpdatePlayer
(
const
yap::Time
& dt);
61
void
HandleOnPlayerWarped
();
62
63
void
ResetMoveController
();
64
65
void
SendApplyForce
(
const
yap::Vector2
& force);
66
void
SendGameInput
(yap::GameInputType gameInputType,
bool
state);
67
68
void
CreateWorldDrawingPolicy
();
69
70
virtual
void
CreateGuiManager
();
71
72
static
const
yap::ScreenType
DEFAULT_NAME
;
73
74
static
const
yap::Vector2
DEFAULT_WORLD_CAMERA_DEZOOM_FACTOR
;
75
76
World
world_
;
77
const
yap::IWorldDrawingPolicy
*
worldDrawingPolicy_
;
78
79
yap::ProgressiveCameraController
cameraController_
;
80
81
Player
*
player_
;
82
yap::CharacterMoveController
moveController_
;
83
yap::Vector2
lastForce_
;
84
85
yap::Timer
fpsDisplayTimer_
;
86
89
GameGuiManager
*
gameGuiManager_
;
90
91
yap::GameWorldGuiManager
*
gameWorldGuiManager_
;
92
MapRootWidget
*
mapRootWidget_
;
93
94
GameMainMenu
*
mainMenu_
;
95
96
PokedexWidget
*
pokedexWidget_
;
97
PokemonTeamWidget
*
pokemonTeamWidget_
;
98
99
TrainerCardWidget
*
trainerCardWidget_
;
100
101
ChatWidget
*
chat_
;
102
103
yap::Label
*
fpsLabel_
;
105
};
106
}
// namespace ycl
107
108
#endif // YAPOG_CLIENT_GAMEPLAYSCREEN_HPP
YAPOG.Client
include
GameScreen
GameplayScreen.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1