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