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