Jamie Slowgrove - MGP Assignment 2 - JAM
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Macros
jni
src
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
:
19
JAM_Texture
*
texture
;
21
JAM_Audio
*
music
;
22
28
bool
windowsInput
(SDL_Event& incomingEvent);
29
35
bool
androidInput
(SDL_Event& incomingEvent);
36
37
public
:
45
Game
(
JAM_StateManager
*
stateManager
, SDL_Renderer*
renderer
,
int
screenWidth
,
int
screenHeight
);
46
50
~Game
();
51
56
bool
input
();
57
62
void
update
(
float
dt);
63
67
void
draw
();
68
};
Texture.h
Game::~Game
~Game()
Definition:
Game.cpp:20
JAM_State
Creates a State object. Creates a State object to be inherited.
Definition:
State.h:15
JAM_State::renderer
SDL_Renderer * renderer
Definition:
State.h:21
Game::androidInput
bool androidInput(SDL_Event &incomingEvent)
Definition:
Game.cpp:96
JAM_Texture
Creates a Texture for use with a renderer. Creates a Texture from an image file, this can then be use...
Definition:
Texture.h:13
Game::update
void update(float dt)
Definition:
Game.cpp:118
JAM_StateManager
Creates a StateManager object. Creates a StateManager object to be inherited.
Definition:
StateManager.h:13
Utilities.h
Game::input
bool input()
Definition:
Game.cpp:33
Game::texture
JAM_Texture * texture
Definition:
Game.h:19
StateManager.h
Game
Creates a Game object that inherits State and runs the Game.
Definition:
Game.h:15
Game::Game
Game(JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight)
Definition:
Game.cpp:7
Game::windowsInput
bool windowsInput(SDL_Event &incomingEvent)
Definition:
Game.cpp:73
Game::draw
void draw()
Definition:
Game.cpp:127
JAM_State::screenWidth
int screenWidth
Definition:
State.h:23
JAM_State::stateManager
JAM_StateManager * stateManager
Definition:
State.h:19
JAM_State::screenHeight
int screenHeight
Definition:
State.h:25
State.h
Audio.h
Game::music
JAM_Audio * music
Definition:
Game.h:21
JAM_Audio
Creates an Audio object to handle the SDL_Mixer.
Definition:
Audio.h:12
Generated on Fri May 8 2015 04:35:28 for Jamie Slowgrove - MGP Assignment 2 - JAM by
1.8.8