Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
EndGame.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <iostream>
5 #include <unordered_map>
6 #include "Utilities.h"
7 #include "State.h"
8 #include "StateManager.h"
9 #include "Camera.h"
10 #include "Audio.h"
11 #include "EndGameUI.h"
12 #include "Object.h"
13 #include "Shader.h"
14 
19 class EndGame : public State
20 {
21 private:
23  std::unordered_map<std::string, Object*> objects;
25  std::unordered_map<std::string, Shader*> shaders;
32 
36  void loadingScreen();
37 
38 public:
48  EndGame(StateManager* stateManager, SDL_Window* window, int screenWidth, int screenHeight, Audio* music, float score);
49 
53  ~EndGame();
54 
59  bool input();
60 
65  void update(float dt);
66 
70  void draw();
71 };
Creates a State object. Creates a State object to be inherited. DISCLAMER - This is a modified versio...
Definition: State.h:16
std::unordered_map< std::string, Object * > objects
Definition: EndGame.h:23
Creates a StateManager object. Creates a StateManager object to be inherited. DISCLAMER - This is my ...
Definition: StateManager.h:13
StateManager * stateManager
Definition: State.h:20
Creates an Camera object.
Definition: Camera.h:14
A class for the 2D EndGameUI that inherits UI.
Definition: EndGameUI.h:14
void loadingScreen()
Audio * music
Definition: EndGame.h:31
SDL_Window * window
Definition: State.h:22
void draw()
Definition: EndGame.cpp:90
~EndGame()
Definition: EndGame.cpp:23
EndGame(StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight, Audio *music, float score)
Definition: EndGame.cpp:7
void update(float dt)
Definition: EndGame.cpp:81
int screenHeight
Definition: State.h:26
std::unordered_map< std::string, Shader * > shaders
Definition: EndGame.h:25
EndGameUI * userInterface
Definition: EndGame.h:29
int screenWidth
Definition: State.h:24
Camera * camera
Definition: EndGame.h:27
bool input()
Definition: EndGame.cpp:41
Creates an EndGame object that inherits State and runs the EndGame screen.
Definition: EndGame.h:19
Creates a Audio object to handle the SDL_Mixer.
Definition: Audio.h:12