Jamie Slowgrove - PGG Assignment 1 - SDL
Main Page
Classes
Files
File List
All
Classes
Functions
PGGAssignment1SDL
winLoseState.h
1
#pragma once
2
#ifndef WINLOSESTATE_H
3
#define WINLOSESTATE_H
4
5
#include "state.h"
6
#include "stateManager.h"
7
#include "texture.h"
8
#include "audio.h"
9
14
class
WinLoseState
:
public
State
15
{
16
private
:
17
/*audio*/
18
Audio
* winSound;
19
Audio
* loseSound;
20
Audio
* music;
21
/*background*/
22
Texture
* background;
23
Texture
* winLoseKeys;
24
Texture
* afterWinLoseKey;
25
Texture
* numbers;
26
/*details*/
27
bool
win;
28
int
score;
29
public
:
38
WinLoseState
(
StateManager
*, SDL_Renderer *,
bool
,
int
);
39
44
~WinLoseState
();
45
51
bool
HandleSDLEvents
();
52
58
void
Update
(
float
deltaTime);
59
64
void
Draw
();
65
70
void
displayScore
();
71
};
72
#endif
WinLoseState::WinLoseState
WinLoseState(StateManager *, SDL_Renderer *, bool, int)
Definition:
winLoseState.cpp:8
State
Creates a State object. Creates a State object to be inherited. Made using information from http://bl...
Definition:
state.h:17
WinLoseState::displayScore
void displayScore()
Definition:
winLoseState.cpp:133
StateManager
Creates a State manager object. Creates a State manager object to be inherited. Made using informatio...
Definition:
stateManager.h:13
Texture
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition:
texture.h:13
WinLoseState::Update
void Update(float deltaTime)
Definition:
winLoseState.cpp:101
WinLoseState::~WinLoseState
~WinLoseState()
Definition:
winLoseState.cpp:44
WinLoseState::Draw
void Draw()
Definition:
winLoseState.cpp:110
WinLoseState
Creates a WinLoseState object. Creates a WinLoseState object that inherits State. ...
Definition:
winLoseState.h:14
WinLoseState::HandleSDLEvents
bool HandleSDLEvents()
Definition:
winLoseState.cpp:62
Audio
Creates a Audio object to handle the SDL_Mixer. Done using help from http://www.lazyfoo.net/tutorials/SDL/21_sound_effects_and_music/index.php.
Definition:
audio.h:13
Generated on Fri Jan 16 2015 17:55:16 for Jamie Slowgrove - PGG Assignment 1 - SDL by
1.8.8