GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GameState.hpp
Go to the documentation of this file.
1 #ifndef RADIX_GAMESTATE_HPP
2 #define RADIX_GAMESTATE_HPP
3 
4 #include <radix/BaseGame.hpp>
6 
7 namespace radix {
8 
9 class GameState {
10 public:
11  struct WinEvent : public Event {
12  static constexpr StaticEventTypeName TypeName = "radix/GameState:Win";
13  const EventTypeName getTypeName() const {
14  return TypeName;
15  }
16  static constexpr StaticEventType Type = TypeNameHash(TypeName);
17  const EventType getType() const {
18  return Type;
19  }
20 
21  WinEvent() {}
22  };
23 
24 public:
25  void handleInput(BaseGame &game);
26 };
27 
28 } /* namespace radix */
29 
30 #endif /* RADIX_GAMESTATE_HPP */
Definition: GameController.hpp:7
Definition: Event.hpp:15
WinEvent()
Definition: GameState.hpp:21
const EventTypeName getTypeName() const
Definition: GameState.hpp:13
const uint32_t StaticEventType
Definition: Event.hpp:10
static constexpr StaticEventTypeName TypeName
Definition: GameState.hpp:12
const EventType getType() const
Definition: GameState.hpp:17
std::string EventTypeName
Definition: Event.hpp:13
static constexpr StaticEventType Type
Definition: GameState.hpp:16
Definition: GameState.hpp:11
static constexpr EventType TypeNameHash(StaticEventTypeName etn)
Definition: Event.hpp:16
void handleInput(BaseGame &game)
Definition: GameState.cpp:5
Definition: GameState.hpp:9
uint32_t EventType
Definition: Event.hpp:11
const char *const StaticEventTypeName
Definition: Event.hpp:12
Definition: BaseGame.hpp:22