Jamie Slowgrove - MGP Assignment 2 - JAM
 All Classes Namespaces Files Functions Variables Macros
Game.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <vector>
5 #include "JAM/State.h"
6 #include "JAM/StateManager.h"
7 #include "JAM/Texture.h"
8 #include "JAM/Audio.h"
9 #include "JAM/Utilities.h"
10 
15 class Game : public JAM_State
16 {
17 private:
22 
28  bool windowsInput(SDL_Event& incomingEvent);
29 
35  bool androidInput(SDL_Event& incomingEvent);
36 
37 public:
46 
50  ~Game();
51 
56  bool input();
57 
62  void update(float dt);
63 
67  void draw();
68 };
~Game()
Definition: Game.cpp:20
Creates a State object. Creates a State object to be inherited.
Definition: State.h:15
SDL_Renderer * renderer
Definition: State.h:21
bool androidInput(SDL_Event &incomingEvent)
Definition: Game.cpp:96
Creates a Texture for use with a renderer. Creates a Texture from an image file, this can then be use...
Definition: Texture.h:13
void update(float dt)
Definition: Game.cpp:118
Creates a StateManager object. Creates a StateManager object to be inherited.
Definition: StateManager.h:13
bool input()
Definition: Game.cpp:33
JAM_Texture * texture
Definition: Game.h:19
Creates a Game object that inherits State and runs the Game.
Definition: Game.h:15
Game(JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight)
Definition: Game.cpp:7
bool windowsInput(SDL_Event &incomingEvent)
Definition: Game.cpp:73
void draw()
Definition: Game.cpp:127
int screenWidth
Definition: State.h:23
JAM_StateManager * stateManager
Definition: State.h:19
int screenHeight
Definition: State.h:25
JAM_Audio * music
Definition: Game.h:21
Creates an Audio object to handle the SDL_Mixer.
Definition: Audio.h:12