Peoplemon  0.1.0
Peoplemon 3 game source documentation
StateChange.hpp
Go to the documentation of this file.
1 #ifndef CORE_EVENTS_STATECHANGE_HPP
2 #define CORE_EVENTS_STATECHANGE_HPP
3 
4 namespace core
5 {
6 namespace event
7 {
15 struct StateChange {
17  enum Type {
19  GamePaused = 0
20  };
21 
23  const Type type;
24 
31  : type(t) {}
32 };
33 
34 } // namespace event
35 } // namespace core
36 
37 #endif
Core classes and functionality for both the editor and game.
Fired when the game should switch states. This event type is primarily for decoupling input code in C...
Definition: StateChange.hpp:15
Type
The type of state change that should occur.
Definition: StateChange.hpp:17
@ GamePaused
The game should pause.
Definition: StateChange.hpp:19
StateChange(Type t)
Construct a new State Change event.
Definition: StateChange.hpp:30
const Type type
The type of state change that should occur.
Definition: StateChange.hpp:23