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