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