PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
LevelScreen.hpp
Go to the documentation of this file.
1 #ifndef LEVELSCREEN_HPP
2 #define LEVELSCREEN_HPP
3 
4 #include <stdio.h>
5 #include <vector>
6 
7 #include <glm\gtc\type_ptr.hpp>
8 
9 #include <GL/glew.h>
10 #include <SDL2/SDL_opengl.h>
11 
12 #include <Box2D/Box2D.h>
13 
14 #include "core/Game.hpp"
15 #include "graphics/Camera.hpp"
16 #include "graphics/GLSprite.hpp"
17 #include "graphics/GLTexture.hpp"
18 #include "graphics/Shader.hpp"
21 #include "lighting/Material.hpp"
22 #include "states/ScreenState.hpp"
24 
25 namespace pk
26 {
27  class HUD;
28  class Arena;
29 }
30 
36 {
37  public:
42  LevelScreen();
43 
48  LevelScreen(Uint32 level);
49  virtual ~LevelScreen();
50 
52  {
57  };
58 
63  void display() override;
64 
70  virtual bool isRunning() override { return m_running; };
71 
72  private:
73  bool m_running;
75  Mix_Music* m_music;
76  Uint32 m_levelToLoad;
78 };
79 
80 #endif // LEVELSCREEN_HPP
Definition: LevelScreen.hpp:53
Definition: Game.hpp:7
ScreenState subclass used for the Level state.
Definition: LevelScreen.hpp:35
pk::Arena * m_spikes
Definition: LevelScreen.hpp:77
Definition: LevelScreen.hpp:56
Definition: HUD.hpp:13
Definition: LevelScreen.hpp:55
bool m_running
Definition: LevelScreen.hpp:70
Uint32 m_levelToLoad
Definition: LevelScreen.hpp:76
LevelScreen()
Default constructor.
Definition: Arena.hpp:23
Abstract class for screen states, necessary for implementing the State pattern along with the Game cl...
Definition: ScreenState.hpp:14
void display() override
Display the menu screen state in the window.
pk::HUD * m_hud
Definition: LevelScreen.hpp:74
virtual bool isRunning() override
Check if MenuScreen is running.
Definition: LevelScreen.hpp:70
levelState
Definition: LevelScreen.hpp:51
Definition: LevelScreen.hpp:54
virtual ~LevelScreen()
Mix_Music * m_music
Definition: LevelScreen.hpp:75