PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
LevelSelectScreen.hpp
Go to the documentation of this file.
1 #ifndef LEVELSELECTSCREEN_HPP
2 #define LEVELSELECTSCREEN_HPP
3 
4 #include <vector>
5 
6 #include "core/Game.hpp"
7 #include "states/ScreenState.hpp"
8 #include "graphics/GLTexture.hpp"
9 #include "graphics/GLSprite.hpp"
11 
12 namespace pk
13 {
14 
15 namespace levelSelection
16 {
17  enum
18  {
22  ICE,
31  };
32 }
33 
39 {
40  public:
46  virtual ~LevelSelectScreen();
47 
49  {
62  };
63 
68  void display() override;
69 
75  virtual bool isRunning() override { return m_running; };
76 
77  void levelSelectionMade();
78 
79  private:
80  bool m_running;
81  Uint32 m_selection;
82  Mix_Music* m_music;
90 };
91 
92 }
93 
94 #endif // LEVELSELECTSCREEN_HPP
Definition: LevelSelectScreen.hpp:20
GLTexture m_rightArrowTexture
Definition: LevelSelectScreen.hpp:86
Definition: LevelSelectScreen.hpp:22
Definition: LevelSelectScreen.hpp:25
Definition: Game.hpp:7
Definition: LevelSelectScreen.hpp:57
Definition: LevelSelectScreen.hpp:54
Definition: LevelSelectScreen.hpp:52
Definition: LevelSelectScreen.hpp:59
Definition: LevelSelectScreen.hpp:24
Definition: LevelSelectScreen.hpp:61
RectangleShape m_selected
Definition: LevelSelectScreen.hpp:89
Create a drawable RectangleShape using OpenGL. For more complex OpenGL geometry see the Mesh class...
Definition: RectangleShape.hpp:19
Definition: LevelSelectScreen.hpp:53
Definition: LevelSelectScreen.hpp:28
Definition: LevelSelectScreen.hpp:60
Definition: LevelSelectScreen.hpp:55
void display() override
Display the LevelSelectScreen state in the window.
Definition: LevelSelectScreen.hpp:23
GLSprite m_levelSprite
Definition: LevelSelectScreen.hpp:84
levelSelectState
Definition: LevelSelectScreen.hpp:48
Uint32 m_selection
Definition: LevelSelectScreen.hpp:81
Definition: LevelSelectScreen.hpp:50
Definition: LevelSelectScreen.hpp:30
ScreenState subclass used for the Level Select state.
Definition: LevelSelectScreen.hpp:38
Definition: LevelSelectScreen.hpp:27
Mix_Music * m_music
Definition: LevelSelectScreen.hpp:82
GLTexture m_leftArrowTexture
Definition: LevelSelectScreen.hpp:85
Definition: LevelSelectScreen.hpp:26
LevelSelectScreen()
Default constructor.
GLTexture m_levelTexture
Definition: LevelSelectScreen.hpp:83
bool m_running
Definition: LevelSelectScreen.hpp:80
Definition: LevelSelectScreen.hpp:19
Abstract class for screen states, necessary for implementing the State pattern along with the Game cl...
Definition: ScreenState.hpp:14
Definition: LevelSelectScreen.hpp:56
Definition: LevelSelectScreen.hpp:21
virtual ~LevelSelectScreen()
GLSprite m_rightArrow
Definition: LevelSelectScreen.hpp:88
Definition: LevelSelectScreen.hpp:58
virtual bool isRunning() override
Check if LevelSelectScreen is running.
Definition: LevelSelectScreen.hpp:75
Class for creating textures usable with OpenGL from SDL.
Definition: GLTexture.hpp:57
Definition: LevelSelectScreen.hpp:51
Definition: LevelSelectScreen.hpp:29
Definition: GLSprite.hpp:13
GLSprite m_leftArrow
Definition: LevelSelectScreen.hpp:87