Voxeloop  0.1.0
Musical Loop Generation in Voxel World
SettingsState.hpp
Go to the documentation of this file.
1 #ifndef CORE_INCLUDE_SETTINGSSTATE_HPP
2 #define CORE_INCLUDE_SETTINGSSTATE_HPP
3 
4 #include "Common.hpp"
5 #include "CoreEngine.hpp"
6 #include "StateMachine.hpp"
7 
8 class SettingsState : public StateMachine {
9 public:
10  void init();
11  void cleanup();
12 
13  void pause();
14  void resume();
15 
16  void handleEvents(CoreEngine *engine);
17  void update(CoreEngine *engine);
18  void draw(CoreEngine *engine);
19 
20  static SettingsState *instance() { return &m_AboutState; }
21 
22 protected:
24 
25 private:
27 
29 };
30 
31 #endif // CORE_INCLUDE_SETTINGSSTATE_HPP
std::shared_ptr< GameData > SharedDataRef
Definition: Common.hpp:14
The underlying engine that handles everything underneath.
Definition: CoreEngine.hpp:14
Definition: SettingsState.hpp:8
SettingsState()
Definition: SettingsState.hpp:23
static SettingsState * instance()
Definition: SettingsState.hpp:20
SharedDataRef m_sharedData
Definition: SettingsState.hpp:28
void draw(CoreEngine *engine)
Definition: SettingsState.cpp:19
void update(CoreEngine *engine)
Definition: SettingsState.cpp:17
void pause()
Definition: SettingsState.cpp:11
void init()
Definition: SettingsState.cpp:5
void handleEvents(CoreEngine *engine)
Definition: SettingsState.cpp:15
static SettingsState m_AboutState
Definition: SettingsState.hpp:26
void resume()
Definition: SettingsState.cpp:13
void cleanup()
Definition: SettingsState.cpp:9
Definition: StateMachine.hpp:6