YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
GameInputManager.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_GAMEINPUTMANAGER_HPP
2
# define YAPOG_GAMEINPUTMANAGER_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Graphics/Gui/GameInput/GameInput.hpp
"
6
# include "
YAPOG/Collection/Map.hpp
"
7
8
namespace
yap
9
{
10
class
YAPOG_LIB
GameInputManager
11
{
12
DISALLOW_COPY
(
GameInputManager
);
13
14
public
:
15
16
static
GameInputManager
& Instance ();
17
18
void
BeginUpdate ();
19
void
Update (
const
GuiEvent
& guiEvent);
20
void
EndUpdate ();
21
22
void
AddGameInput (
GameInput
* gameInput);
23
void
RemoveGameInput (
GameInput
* gameInput);
24
25
bool
GameInputIsActive (
26
GameInputType gameInputType,
27
const
GuiEvent
& guiEvent)
const
;
28
bool
GameInputIsActivated (
29
GameInputType gameInputType,
30
const
GuiEvent
& guiEvent)
const
;
31
bool
GameInputIsDeactivated (
32
GameInputType gameInputType,
33
const
GuiEvent
& guiEvent)
const
;
34
35
private
:
36
37
GameInputManager
();
38
~
GameInputManager
();
39
40
collection::Map<GameInputType, GameInput*>
gameInputs_
;
41
};
42
}
// namespace yap
43
44
#endif // YAPOG_GAMEINPUTMANAGER_HPP
YAPOG
include
YAPOG
Graphics
Gui
GameInput
GameInputManager.hpp
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1