YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
GameGuiManager.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_CLIENT_GAMEGUIMANAGER_HPP
2
# define YAPOG_CLIENT_GAMEGUIMANAGER_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/GuiManager.hpp
"
6
# include "
YAPOG/Collection/Map.hpp
"
7
# include "
YAPOG/System/String.hpp
"
8
9
namespace
ycl
10
{
11
class
GameGuiManager
:
public
yap::GuiManager
12
{
13
DISALLOW_COPY
(
GameGuiManager
);
14
15
public
:
16
17
GameGuiManager
();
18
19
virtual
~GameGuiManager
();
20
21
void
AddGameWidget
(
const
yap::String
& name,
yap::IWidget
* gameWidget);
22
23
void
SetCurrentWidget
(
const
yap::String
& name);
24
bool
UnsetCurrentWidget
();
25
26
protected
:
27
28
virtual
bool
HandleOnEvent
(
const
yap::GuiEvent
& guiEvent);
29
//virtual bool HandleOnPriorityEvent (const yap::GuiEvent& guiEvent);
30
31
private
:
32
33
static
const
bool
DEFAULT_ADDED_WIDGET_STATE
;
34
35
yap::String
currentWidgetName_
;
36
yap::IWidget
*
currentWidget_
;
37
yap::collection::Map<yap::String, yap::IWidget*>
gameWidgets_
;
38
};
39
}
// namespace ycl
40
41
#endif // YAPOG_CLIENT_GAMEGUIMANAGER_HPP
YAPOG.Client
include
Gui
GameGuiManager.hpp
Generated on Mon Sep 17 2012 22:24:21 for YAPOG by
1.8.1.1