![]() |
PROTO::KLUDGE
0.1
Quick prototyping library for games using SDL and OpenGL.
|
SceenState subclass used for the Menu state. More...
#include <MenuScreen.hpp>
Public Types | |
enum | menuState { s_uninitialized, s_running, s_play, s_options, s_exit } |
Public Member Functions | |
MenuScreen () | |
Default constructor. More... | |
virtual | ~MenuScreen () |
void | display () override |
Display the menu screen state in the window. More... | |
virtual bool | isRunning () override |
Check if MenuScreen is running. More... | |
![]() | |
ScreenState () | |
Default constructor. More... | |
virtual | ~ScreenState () |
Uint32 | getState () |
Get the internal state of the ScreenState. More... | |
void | setState (Uint32 state) |
Set the internal state of the ScreenState. More... | |
Private Attributes | |
pk::Texture | m_texture |
pk::Sprite | m_sprite |
pk::Font | m_font |
pk::Texture | m_textTexture |
pk::Texture | m_textTextureOutline |
pk::Text | m_screenTitle |
bool | m_running |
Mix_Music * | m_music |
Mix_Chunk * | m_selectSound |
SceenState subclass used for the Menu state.
MenuScreen::MenuScreen | ( | ) |
Default constructor.
|
virtual |
|
overridevirtual |
Display the menu screen state in the window.
Implements pk::ScreenState.
|
inlineoverridevirtual |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |