Jamie Slowgrove - PGG Assignment 1 - SDL
 All Classes Functions
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(StateManager *, SDL_Renderer *, bool, int)
Definition: winLoseState.cpp:8
Creates a State object. Creates a State object to be inherited. Made using information from http://bl...
Definition: state.h:17
void displayScore()
Definition: winLoseState.cpp:133
Creates a State manager object. Creates a State manager object to be inherited. Made using informatio...
Definition: stateManager.h:13
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition: texture.h:13
void Update(float deltaTime)
Definition: winLoseState.cpp:101
~WinLoseState()
Definition: winLoseState.cpp:44
void Draw()
Definition: winLoseState.cpp:110
Creates a WinLoseState object. Creates a WinLoseState object that inherits State. ...
Definition: winLoseState.h:14
bool HandleSDLEvents()
Definition: winLoseState.cpp:62
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