Voxeloop  0.1.0
Musical Loop Generation in Voxel World
State.hpp
Go to the documentation of this file.
1 #ifndef CORE_INCLUDE_STATE_HPP
2 #define CORE_INCLUDE_STATE_HPP
3 
4 class State {
5 public:
9  virtual void init() = 0;
10 
14  virtual void draw() = 0;
15 
19  virtual void update() = 0;
20 
24  virtual void handleInput() = 0;
25 
29  virtual void pause();
30 
34  virtual void resume();
35 
39  virtual ~State() = default;
40 };
41 
42 #endif // CORE_INCLUDE_STATE_HPP
Definition: State.hpp:4
virtual void update()=0
Update state data.
virtual void init()=0
Initialize state related data.
virtual ~State()=default
Destroy the State object.
virtual void resume()
Resume paused state.
virtual void pause()
Pause a state.
virtual void handleInput()=0
Handle user input.
virtual void draw()=0
Draw state objects.