Level H Engine
LevelHEngine
States
CannonGame
States
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
;
50
Text
*
scoreText
;
51
};
Text
Creates a Text sprite for use with using the Text formating.
Definition:
Text.h:12
WinLose::~WinLose
~WinLose()
Destructs the State object.
Definition:
WinLose.cpp:19
State
Creates a State object to be inherited.
Definition:
State.h:13
WinLose::gameStart
bool gameStart
A boolean for if this is at the game start.
Definition:
WinLose.h:48
StateManager
Creates a StateManager object.
Definition:
StateManager.h:9
State::stateManager
StateManager * stateManager
A pointer to the state manager.
Definition:
State.h:64
WinLose::winLoseID
std::string winLoseID
The Win Lose image.
Definition:
WinLose.h:46
WinLose
A State that contains and runs the Demo.
Definition:
WinLose.h:11
WinLose::backgroundMusicID
std::string backgroundMusicID
The background music id.
Definition:
WinLose.h:44
WinLose::WinLose
WinLose(StateManager *stateManager, SDL_Window *window, bool inGameStart, int score)
Constructs the State object.
Definition:
WinLose.cpp:10
State::window
SDL_Window * window
The window to display to.
Definition:
State.h:66
WinLose::scoreText
Text * scoreText
A pointer for the score text.
Definition:
WinLose.h:50
WinLose::update
void update()
A function to update the State.
Definition:
WinLose.cpp:65
WinLose::draw
void draw()
A function to draw the State to the screen.
Definition:
WinLose.cpp:71
WinLose::input
bool input()
Handles the State input.
Definition:
WinLose.cpp:24
Generated on Mon Nov 5 2018 12:22:15 for Level H Engine by
1.8.13