YAPOG  0.0.1
Yet Another Pokemon Online Game
GameInput.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_GAMEINPUT_HPP
2 # define YAPOG_GAMEINPUT_HPP
3 
4 # include "YAPOG/Macros.hpp"
8 
9 namespace yap
10 {
13  {
15 
16  public:
17 
18  GameInput (GameInputType type, GameInputEntry* entry);
19  ~GameInput ();
20 
21  void AddEntry (GameInputEntry* entry);
22 
23  bool IsActive () const;
24  bool IsActivated () const;
25  bool IsDeactivated () const;
26 
27  bool IsActive (const GuiEvent& guiEvent) const;
28  bool IsActivated (const GuiEvent& guiEvent) const;
29  bool IsDeactivated (const GuiEvent& guiEvent) const;
30 
31  void BeginUpdate ();
32  void Update (const GuiEvent& guiEvent);
33  void EndUpdate ();
34 
35  GameInputType GetType () const;
36 
37  private:
38 
39  GameInputType type_;
40 
42  };
43 } // namespace yap
44 
45 #endif // YAPOG_GAMEINPUT_HPP