Level H Engine
WinLose.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include "../../State.h"
5 #include "../../StateManager.h"
6 #include "../../../ResourceManagement/Text.h"
7 
11 class WinLose : public State
12 {
13 public:
19  WinLose(StateManager* stateManager, SDL_Window* window, bool inGameStart, int score);
20 
24  ~WinLose();
25 
30  bool input();
31 
35  void update();
36 
40  void draw();
41 
42 private:
44  std::string backgroundMusicID;
46  std::string winLoseID;
48  bool gameStart;
51 };
Creates a Text sprite for use with using the Text formating.
Definition: Text.h:12
~WinLose()
Destructs the State object.
Definition: WinLose.cpp:19
Creates a State object to be inherited.
Definition: State.h:13
bool gameStart
A boolean for if this is at the game start.
Definition: WinLose.h:48
Creates a StateManager object.
Definition: StateManager.h:9
StateManager * stateManager
A pointer to the state manager.
Definition: State.h:64
std::string winLoseID
The Win Lose image.
Definition: WinLose.h:46
A State that contains and runs the Demo.
Definition: WinLose.h:11
std::string backgroundMusicID
The background music id.
Definition: WinLose.h:44
WinLose(StateManager *stateManager, SDL_Window *window, bool inGameStart, int score)
Constructs the State object.
Definition: WinLose.cpp:10
SDL_Window * window
The window to display to.
Definition: State.h:66
Text * scoreText
A pointer for the score text.
Definition: WinLose.h:50
void update()
A function to update the State.
Definition: WinLose.cpp:65
void draw()
A function to draw the State to the screen.
Definition: WinLose.cpp:71
bool input()
Handles the State input.
Definition: WinLose.cpp:24