![]() |
PROTO::KLUDGE
0.1
Quick prototyping library for games using SDL and OpenGL.
|
Abstract class for screen states, necessary for implementing the State pattern along with the Game class. More...
#include <ScreenState.hpp>
Public Member Functions | |
ScreenState () | |
Default constructor. More... | |
virtual | ~ScreenState () |
virtual void | display ()=0 |
Display the screen state in the window. Requires and override in inherited classes. More... | |
virtual bool | isRunning ()=0 |
Check if ScreenState is running. Requires and override in inherited classes. More... | |
Uint32 | getState () |
Get the internal state of the ScreenState. More... | |
void | setState (Uint32 state) |
Set the internal state of the ScreenState. More... | |
Private Attributes | |
Uint32 | m_state |
Abstract class for screen states, necessary for implementing the State pattern along with the Game class.
pk::ScreenState::ScreenState | ( | ) |
Default constructor.
|
virtual |
|
pure virtual |
Display the screen state in the window. Requires and override in inherited classes.
Implemented in pk::LevelSelectScreen, LevelScreen, MenuScreen, pk::OptionsScreen, and pk::CharacterSelectScreen.
|
inline |
Get the internal state of the ScreenState.
|
pure virtual |
Check if ScreenState is running. Requires and override in inherited classes.
Implemented in pk::LevelSelectScreen, LevelScreen, MenuScreen, pk::OptionsScreen, and pk::CharacterSelectScreen.
|
inline |
Set the internal state of the ScreenState.
Uint32 | state - an unsigned int (32-bit) representing the internal state. |
|
private |