Jamie Slowgrove - AI Assignment 1
Line of Sight & A* path-finding
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
AIAssignment1LineOfSight
game.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <SDL.h>
4
#include "
state.h
"
5
#include "
stateManager.h
"
6
#include "
texture.h
"
7
#include "
audio.h
"
8
#include "
text.h
"
9
#include "
map.h
"
10
#include "
wall.h
"
11
#include "
player.h
"
12
#include "
botA.h
"
13
#include "
botB.h
"
14
#include "
lineOfSight.h
"
15
20
class
Game
:
public
State
21
{
22
private
:
24
Texture
*
background
;
25
Texture
*
spritesheet
;
27
Map
*
map
;
28
Player
*
player
;
29
BotA
*
botA
;
30
BotB
*
botB
;
31
/*developer mode*/
32
bool
developer
;
33
bool
showCollisions
;
34
bool
showLOS
;
35
bool
showAStar
;
36
/*bool to make the game not update on first loop (Fixes Bugs)*/
37
bool
firstRun
;
38
/*rendered text*/
39
std::vector<Text *>
text
;
40
/*background music*/
41
Audio
*
music
;
42
/*if the music should play*/
43
bool
playMusic
;
44
48
void
drawText
();
49
50
public
:
58
Game
(
StateManager
*, SDL_Renderer *,
int
,
int
);
59
63
~Game
();
64
69
bool
input
();
70
76
void
update
(
float
deltaTime);
77
81
void
draw
();
82
};
audio.h
Game::~Game
~Game()
Definition:
game.cpp:56
State
Creates a State object. Creates a State object to be inherited. DISCLAIMER - This code is from my PGG...
Definition:
state.h:15
Game::spritesheet
Texture * spritesheet
Definition:
game.h:25
Game::text
std::vector< Text * > text
Definition:
game.h:39
Game::drawText
void drawText()
Definition:
game.cpp:321
text.h
StateManager
Creates a StateManager object. Creates a StateManager object to be inherited. DISCLAIMER - This code ...
Definition:
stateManager.h:11
Game::player
Player * player
Definition:
game.h:28
Game::botA
BotA * botA
Definition:
game.h:29
texture.h
lineOfSight.h
player.h
Game::showLOS
bool showLOS
Definition:
game.h:34
Game::map
Map * map
Definition:
game.h:27
Game::developer
bool developer
Definition:
game.h:32
Game::background
Texture * background
Definition:
game.h:24
Game::botB
BotB * botB
Definition:
game.h:30
Game::showCollisions
bool showCollisions
Definition:
game.h:33
Map
Creates a Map object.
Definition:
map.h:13
BotB
Creates a BotB object that inherits BotAI. Creates a BotB object that inherits BotAI and contains the...
Definition:
botB.h:13
Game::firstRun
bool firstRun
Definition:
game.h:37
BotA
Creates a BotA object that inherits BotAI. Creates a BotA object that inherits BotAI and contains the...
Definition:
botA.h:12
Texture
Creates a Texture for use with a renderer Creates a Texture from an image file, this can then be used...
Definition:
texture.h:13
Game::input
bool input()
Definition:
game.cpp:77
botB.h
Game
Creates a Game object that inherits State Creates a Game object that inherits State and runs the Game...
Definition:
game.h:20
stateManager.h
state.h
Game::draw
void draw()
Definition:
game.cpp:231
Game::playMusic
bool playMusic
Definition:
game.h:43
map.h
Game::Game
Game(StateManager *, SDL_Renderer *, int, int)
Definition:
game.cpp:6
Game::showAStar
bool showAStar
Definition:
game.h:35
Player
Creates a Player object that inherits Creature. Creates a Player object that inherits Creature and co...
Definition:
player.h:12
botA.h
Game::update
void update(float deltaTime)
Definition:
game.cpp:172
Audio
Creates an Audio object to handle the SDL_Mixer. DISCLAIMER - This code is from my PGG SDL Assignment...
Definition:
audio.h:11
Game::music
Audio * music
Definition:
game.h:41
wall.h
Generated on Wed Apr 1 2015 11:45:24 for Jamie Slowgrove - AI Assignment 1 by
1.8.8