Voxeloop  0.1.0
Musical Loop Generation in Voxel World
StateMachine Class Referenceabstract

#include <StateMachine.hpp>

Inheritance diagram for StateMachine:
Inheritance graph
Collaboration diagram for StateMachine:
Collaboration graph

Public Member Functions

virtual void init ()=0
 
virtual void cleanup ()=0
 
virtual void pause ()=0
 
virtual void resume ()=0
 
virtual void handleEvents (CoreEngine *engine)=0
 
virtual void update (CoreEngine *engine)=0
 
virtual void draw (CoreEngine *engine)=0
 
void changeState (CoreEngine *engine, StateMachine *state)
 

Protected Member Functions

 StateMachine ()
 

Constructor & Destructor Documentation

◆ StateMachine()

StateMachine::StateMachine ( )
inlineprotected

Member Function Documentation

◆ changeState()

void StateMachine::changeState ( CoreEngine engine,
StateMachine state 
)
inline

◆ cleanup()

virtual void StateMachine::cleanup ( )
pure virtual

Implemented in SettingsState, PlayState, MenuState, and AboutState.

◆ draw()

virtual void StateMachine::draw ( CoreEngine engine)
pure virtual

Implemented in SettingsState, PlayState, MenuState, and AboutState.

◆ handleEvents()

virtual void StateMachine::handleEvents ( CoreEngine engine)
pure virtual

Implemented in SettingsState, PlayState, MenuState, and AboutState.

◆ init()

virtual void StateMachine::init ( )
pure virtual

Implemented in SettingsState, PlayState, MenuState, and AboutState.

◆ pause()

virtual void StateMachine::pause ( )
pure virtual

Implemented in SettingsState, PlayState, MenuState, and AboutState.

◆ resume()

virtual void StateMachine::resume ( )
pure virtual

Implemented in SettingsState, PlayState, MenuState, and AboutState.

◆ update()

virtual void StateMachine::update ( CoreEngine engine)
pure virtual

Implemented in SettingsState, PlayState, MenuState, and AboutState.


The documentation for this class was generated from the following file: