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
botB.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <SDL.h>
4
#include "
texture.h
"
5
#include "
vec2.h
"
6
#include "
botAI.h
"
7
#include "
botA.h
"
8
13
class
BotB
:
public
BotAI
14
{
15
private
:
17
bool
following
;
19
BotA
*
botA
;
20
27
void
updateMoveFollow
(
Creature
*,
Map
*,
float
);
28
29
public
:
38
BotB
(
Texture
*,
Vec2
,
int
,
int
,
Map
*);
39
43
~BotB
();
44
51
void
playerLineOfSight
(
Player
*,
BotA
*,
Map
*);
52
59
void
updateMovement
(
Player
* ,
Map
*,
float
);
60
65
bool
getFollowing
();
66
};
BotB::getFollowing
bool getFollowing()
Definition:
botB.cpp:157
BotAI
Creates a BotAI object that inherits Creature. Creates a BotAI object that inherits Creature and cont...
Definition:
botAI.h:16
BotB::botA
BotA * botA
Definition:
botB.h:19
Creature
Creates a Creature object that inherits Entity. Creates a Creature object that inherits Entity and co...
Definition:
creature.h:13
BotB::~BotB
~BotB()
Definition:
botB.cpp:15
Vec2
Creates a Vec2 structure with functions Creates a Vec2 structure with overloaded operators to create ...
Definition:
vec2.h:7
BotB::updateMovement
void updateMovement(Player *, Map *, float)
Definition:
botB.cpp:75
BotB::updateMoveFollow
void updateMoveFollow(Creature *, Map *, float)
texture.h
botAI.h
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
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
BotB::BotB
BotB(Texture *, Vec2, int, int, Map *)
Definition:
botB.cpp:6
BotB::playerLineOfSight
void playerLineOfSight(Player *, BotA *, Map *)
Definition:
botB.cpp:22
Player
Creates a Player object that inherits Creature. Creates a Player object that inherits Creature and co...
Definition:
player.h:12
botA.h
vec2.h
BotB::following
bool following
Definition:
botB.h:17
Generated on Wed Apr 1 2015 11:45:24 for Jamie Slowgrove - AI Assignment 1 by
1.8.8