PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
OptionsScreen.hpp
Go to the documentation of this file.
1 #ifndef OPTIONSSCREEN_HPP
2 #define OPTIONSSCREEN_HPP
3 
4 #include <iostream>
5 #include <fstream>
6 
7 #include "states/ScreenState.hpp"
8 #include "tables/options.hpp"
9 
10 namespace pk
11 {
12 
13 class OptionsScreen : public ScreenState
14 {
15  public:
16  OptionsScreen();
17  virtual ~OptionsScreen();
18 
20  {
25  };
26 
31  void display() override;
32 
38  virtual bool isRunning() override { return m_running; };
39 
40  private:
41  bool m_running;
43 };
44 
45 }
46 
47 #endif // OPTIONSSCREEN_HPP
Definition: Game.hpp:7
Definition: OptionsScreen.hpp:23
optionsState
Definition: OptionsScreen.hpp:19
The data structure holding all of the options settings.
Definition: options.hpp:17
virtual bool isRunning() override
Check if OptionsScreen is running.
Definition: OptionsScreen.hpp:38
void display() override
Display the options screen state in the window.
pk::options::optionsCereal m_options
Definition: OptionsScreen.hpp:42
virtual ~OptionsScreen()
Abstract class for screen states, necessary for implementing the State pattern along with the Game cl...
Definition: ScreenState.hpp:14
Definition: OptionsScreen.hpp:13
bool m_running
Definition: OptionsScreen.hpp:38
Definition: OptionsScreen.hpp:21
Definition: OptionsScreen.hpp:22
Definition: OptionsScreen.hpp:24