YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
BattleInterface.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_BATTLEINTERFACE_HPP
2
# define YAPOG_CLIENT_BATTLEINTERFACE_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/Label.hpp
"
6
# include "
YAPOG/Graphics/Gui/GuiManager.hpp
"
7
8
# include "
Battle/BaseBattleWidget.hpp
"
9
# include "
Battle/BattleMenu.hpp
"
10
# include "
Battle/BattleMoveMenu.hpp
"
11
# include "
Battle/BattleMoveInfoMenu.hpp
"
12
13
namespace
yap
14
{
15
class
DialogBoxWidget;
16
class
GridMenu;
17
}
// namespace yap
18
19
namespace
ycl
20
{
21
class
BattleBackgroundWidget;
22
class
PokemonBattleInfoWidget;
23
class
OpponentBattleInfoWidget;
24
25
class
BattleInterface
:
public
BaseBattleWidget
26
{
27
public
:
28
BattleInterface
();
29
30
void
Reset
();
31
32
void
AddBattleWidget
(
const
yap::String
& name,
yap::IWidget
* battleWidget);
33
34
void
SetCurrentWidget
(
const
yap::String
& name);
35
bool
UnsetCurrentWidget
();
36
39
yap::DialogBoxWidget
&
GetBattleInfoDialogBox
();
40
PokemonBattleInfoWidget
&
GetPokemonInfoWidget
();
41
OpponentBattleInfoWidget
&
GetOpponentInfoWidget
();
42
BattleMenu
&
GetBattleMenu
();
43
BattleMoveMenu
&
GetBattleMoveMenu
();
44
BattleMoveInfoMenu
&
GetBattleMoveInfoMenu
();
46
47
private
:
48
void
OpenBattleMoveMenu
();
49
50
yap::DialogBoxWidget
*
battleInfoDialogBox_
;
51
PokemonBattleInfoWidget
*
pokemonInfoWidget_
;
52
OpponentBattleInfoWidget
*
opponentInfoWidget_
;
53
BattleMenu
battleMenu_
;
54
BattleMoveMenu
battleMoveMenu_
;
55
BattleMoveInfoMenu
battleMoveInfoMenu_
;
56
57
yap::String
currentWidgetName_
;
58
yap::IWidget
*
currentWidget_
;
59
yap::collection::Map<yap::String, yap::IWidget*>
battleWidgets_
;
60
61
static
const
bool
DEFAULT_ADDED_WIDGET_STATE
;
62
};
63
}
// namespace ycl
64
65
#endif // YAPOG_CLIENT_BATTLEINTERFACE_HPP
YAPOG.Client
include
Battle
BattleInterface.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1