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
#include "
JAM/Text.h
"
11
#include "
JAM/Vec2.h
"
12
#include "
JAM/Button.h
"
13
#include "
JAM/AStar.h
"
14
#include "
MapSquare.h
"
15
#include "
Robot.h
"
16
21
class
Game
:
public
JAM_State
22
{
23
private
:
25
std::vector<std::vector<MapSquare*>>
mapSquares
;
27
JAM_Audio
*
music
;
29
JAM_Vec2
mouse
;
31
JAM_Vec2
target
;
33
int
squareScale
;
35
JAM_Texture
*
border
;
37
JAM_Texture
*
targetTexture
;
39
JAM_Texture
*
wall
;
41
JAM_Button
*
toggle
;
43
int
placementType
;
45
JAM_AStar
*
aStar
;
47
Robot
*
robot
;
48
54
bool
windowsInput
(SDL_Event& incomingEvent);
55
61
bool
androidInput
(SDL_Event& incomingEvent);
62
63
public
:
71
Game
(
JAM_StateManager
*
stateManager
, SDL_Renderer*
renderer
,
int
screenWidth
,
int
screenHeight
);
72
76
~Game
();
77
82
bool
input
();
83
88
void
update
(
float
dt);
89
93
void
draw
();
94
};
Texture.h
Game::wall
JAM_Texture * wall
Definition:
Game.h:39
Robot.h
Game::~Game
~Game()
Definition:
Game.cpp:72
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::mapSquares
std::vector< std::vector< MapSquare * > > mapSquares
Definition:
Game.h:25
MapSquare.h
Game::robot
Robot * robot
Definition:
Game.h:47
Game::aStar
JAM_AStar * aStar
Definition:
Game.h:45
Button.h
Game::androidInput
bool androidInput(SDL_Event &incomingEvent)
Definition:
Game.cpp:234
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:256
Game::placementType
int placementType
Definition:
Game.h:43
JAM_StateManager
Creates a StateManager object. Creates a StateManager object to be inherited.
Definition:
StateManager.h:13
Robot
Creates a Robot object that inherits Entity.
Definition:
Robot.h:9
Game::mouse
JAM_Vec2 mouse
Definition:
Game.h:29
Vec2.h
Game::toggle
JAM_Button * toggle
Definition:
Game.h:41
AStar.h
Game::targetTexture
JAM_Texture * targetTexture
Definition:
Game.h:37
Game::squareScale
int squareScale
Definition:
Game.h:33
Utilities.h
Text.h
Game::input
bool input()
Definition:
Game.cpp:91
StateManager.h
Game
Creates an Game object that inherits State and runs the Game.
Definition:
Game.h:21
Game::border
JAM_Texture * border
Definition:
Game.h:35
Game::Game
Game(JAM_StateManager *stateManager, SDL_Renderer *renderer, int screenWidth, int screenHeight)
Definition:
Game.cpp:6
Game::windowsInput
bool windowsInput(SDL_Event &incomingEvent)
Definition:
Game.cpp:211
Game::draw
void draw()
Definition:
Game.cpp:265
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
JAM_AStar
Creates an object for A* path finding.
Definition:
AStar.h:13
JAM_Button
Creates a Button object that inherits Entity.
Definition:
Button.h:11
State.h
Audio.h
Game::music
JAM_Audio * music
Definition:
Game.h:27
JAM_Vec2
Creates an Vec2 structure with functions. Creates an Vec2 structure with overloaded operators to crea...
Definition:
Vec2.h:9
JAM_Audio
Creates an Audio object to handle the SDL_Mixer.
Definition:
Audio.h:12
Game::target
JAM_Vec2 target
Definition:
Game.h:31
Generated on Fri May 8 2015 04:48:20 for Jamie Slowgrove - MGP Assignment 2 - JAM by
1.8.8