PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
pk::OptionsScreen Class Reference

#include <OptionsScreen.hpp>

Inheritance diagram for pk::OptionsScreen:
Inheritance graph
Collaboration diagram for pk::OptionsScreen:
Collaboration graph

Public Types

enum  optionsState { s_uninitialized, s_running, s_menu, s_exit }
 

Public Member Functions

 OptionsScreen ()
 
virtual ~OptionsScreen ()
 
void display () override
 Display the options screen state in the window. More...
 
virtual bool isRunning () override
 Check if OptionsScreen is running. More...
 
- Public Member Functions inherited from pk::ScreenState
 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

bool m_running
 
pk::options::optionsCereal m_options
 

Member Enumeration Documentation

◆ optionsState

Enumerator
s_uninitialized 
s_running 
s_menu 
s_exit 

Constructor & Destructor Documentation

◆ OptionsScreen()

pk::OptionsScreen::OptionsScreen ( )

◆ ~OptionsScreen()

virtual pk::OptionsScreen::~OptionsScreen ( )
virtual

Member Function Documentation

◆ display()

void pk::OptionsScreen::display ( )
overridevirtual

Display the options screen state in the window.

Implements pk::ScreenState.

◆ isRunning()

bool pk::OptionsScreen::isRunning ( )
inlineoverridevirtual

Check if OptionsScreen is running.

Returns
bool

Implements pk::ScreenState.

Member Data Documentation

◆ m_options

pk::options::optionsCereal pk::OptionsScreen::m_options
private

◆ m_running

bool pk::OptionsScreen::m_running
private

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