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
botAI.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 "
creature.h
"
7
#include "
player.h
"
8
#include "
map.h
"
9
#include "
lineOfSight.h
"
10
#include "
aStar.h
"
11
16
class
BotAI
:
public
Creature
17
{
18
protected
:
20
AStar
*
aStar
;
21
Vec2
moveTarget
;
22
Vec2
nextPosition
;
23
Vec2
lastNode
;
25
bool
running
;
26
32
void
updateMovementVelocities
(
float
,
bool
);
33
34
public
:
46
BotAI
(
Texture
*,
Vec2
,
Vec2
,
int
,
int
,
int
,
int
,
Map
*);
47
51
~BotAI
();
52
58
void
playerLineOfSight
(
Player
*,
Map
*);
59
66
virtual
void
updateMovement
(
Player
*,
Map
*,
float
);
67
73
void
drawPath
(SDL_Renderer*,
Vec2
target);
74
79
Vec2
getLastNodePosition
();
80
85
bool
getRunning
();
86
};
BotAI
Creates a BotAI object that inherits Creature. Creates a BotAI object that inherits Creature and cont...
Definition:
botAI.h:16
Creature
Creates a Creature object that inherits Entity. Creates a Creature object that inherits Entity and co...
Definition:
creature.h:13
BotAI::aStar
AStar * aStar
Definition:
botAI.h:20
BotAI::getRunning
bool getRunning()
Definition:
botAI.cpp:240
Vec2
Creates a Vec2 structure with functions Creates a Vec2 structure with overloaded operators to create ...
Definition:
vec2.h:7
texture.h
lineOfSight.h
player.h
BotAI::playerLineOfSight
void playerLineOfSight(Player *, Map *)
Definition:
botAI.cpp:45
BotAI::~BotAI
~BotAI()
Definition:
botAI.cpp:38
Map
Creates a Map object.
Definition:
map.h:13
BotAI::moveTarget
Vec2 moveTarget
Definition:
botAI.h:21
AStar
Creates an object for A* path finding Made using help from http://www.policyalmanac.org/games/aStarTutorial.htm.
Definition:
aStar.h:13
creature.h
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
BotAI::BotAI
BotAI(Texture *, Vec2, Vec2, int, int, int, int, Map *)
Definition:
botAI.cpp:6
BotAI::updateMovementVelocities
void updateMovementVelocities(float, bool)
Definition:
botAI.cpp:117
BotAI::drawPath
void drawPath(SDL_Renderer *, Vec2 target)
Definition:
botAI.cpp:204
map.h
BotAI::updateMovement
virtual void updateMovement(Player *, Map *, float)
Definition:
botAI.cpp:69
BotAI::running
bool running
Definition:
botAI.h:25
BotAI::lastNode
Vec2 lastNode
Definition:
botAI.h:23
Player
Creates a Player object that inherits Creature. Creates a Player object that inherits Creature and co...
Definition:
player.h:12
vec2.h
BotAI::getLastNodePosition
Vec2 getLastNodePosition()
Definition:
botAI.cpp:231
BotAI::nextPosition
Vec2 nextPosition
Definition:
botAI.h:22
aStar.h
Generated on Wed Apr 1 2015 11:45:24 for Jamie Slowgrove - AI Assignment 1 by
1.8.8