Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
Help.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include "JAM/State.h"
5 #include "JAM/StateManager.h"
6 #include "JAM/Audio.h"
7 #include "JAM/Texture.h"
8 #include "JAM/Text.h"
9 #include "JAM/Utilities.h"
10 
16 class Help : public JAM_State
17 {
18 private:
20  std::vector<JAM_Text *> text;
25 
31  bool windowsInput(SDL_Event& incomingEvent);
32 
38  bool androidInput(SDL_Event& incomingEvent);
39 
40 public:
49  Help(JAM_StateManager* stateManager, SDL_Renderer* renderer, int screenWidth, int screenHeight, JAM_Audio* music);
50 
54  ~Help();
55 
60  bool input();
61 
66  void update(float deltaTime);
67 
71  void draw();
72 };
Creates a State object. Creates a State object to be inherited.
Definition: State.h:15
SDL_Renderer * renderer
Definition: State.h:21
void draw()
Definition: Help.cpp:172
Creates a Texture for use with a renderer. Creates a Texture from an image file, this can then be use...
Definition: Texture.h:13
bool windowsInput(SDL_Event &incomingEvent)
Definition: Help.cpp:111
Creates a StateManager object. Creates a StateManager object to be inherited.
Definition: StateManager.h:13
JAM_Audio * music
Definition: Help.h:22
Creates a Help object that inherits JAM_State. Creates a Help object that inherits JAM_State and runs...
Definition: Help.h:16
~Help()
Definition: Help.cpp:66
Help(JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight, JAM_Audio *music)
Definition: Help.cpp:7
int screenWidth
Definition: State.h:23
JAM_StateManager * stateManager
Definition: State.h:19
int screenHeight
Definition: State.h:25
bool androidInput(SDL_Event &incomingEvent)
Definition: Help.cpp:140
void update(float deltaTime)
Definition: Help.cpp:163
std::vector< JAM_Text * > text
Definition: Help.h:20
JAM_Texture * background
Definition: Help.h:24
Creates an Audio object to handle the SDL_Mixer.
Definition: Audio.h:12
bool input()
Definition: Help.cpp:78