Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Credits.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 "CreditsUI.h"
12 #include "Object.h"
13 #include "Shader.h"
14 
19 class Credits : 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:
47  Credits(StateManager* stateManager, SDL_Window* window, int screenWidth, int screenHeight, Audio* music);
48 
52  ~Credits();
53 
58  bool input();
59 
64  void update(float dt);
65 
69  void draw();
70 };
void update(float dt)
Definition: Credits.cpp:72
std::unordered_map< std::string, Shader * > shaders
Definition: Credits.h:25
Creates a State object. Creates a State object to be inherited. DISCLAMER - This is a modified versio...
Definition: State.h:16
void draw()
Definition: Credits.cpp:81
CreditsUI * userInterface
Definition: Credits.h:29
Creates a StateManager object. Creates a StateManager object to be inherited. DISCLAMER - This is my ...
Definition: StateManager.h:13
A class for the 2D CreditsUI that inherits UI.
Definition: CreditsUI.h:14
StateManager * stateManager
Definition: State.h:20
Creates an Camera object.
Definition: Camera.h:14
Credits(StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight, Audio *music)
Definition: Credits.cpp:6
~Credits()
Definition: Credits.cpp:22
SDL_Window * window
Definition: State.h:22
Audio * music
Definition: Credits.h:31
void loadingScreen()
bool input()
Definition: Credits.cpp:40
int screenHeight
Definition: State.h:26
int screenWidth
Definition: State.h:24
std::unordered_map< std::string, Object * > objects
Definition: Credits.h:23
Creates an Credits object that inherits State and runs the Help screen.
Definition: Credits.h:19
Camera * camera
Definition: Credits.h:27
Creates a Audio object to handle the SDL_Mixer.
Definition: Audio.h:12