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
player.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
12
class
Player
:
public
Creature
13
{
14
private
:
16
bool
up
,
down
,
left
,
right
;
17
public
:
25
Player
(
Texture
*,
Vec2
,
int
,
int
);
26
30
~Player
();
31
36
void
commandUp
(
bool
);
37
42
void
commandDown
(
bool
);
43
48
void
commandLeft
(
bool
);
49
54
void
commandRight
(
bool
);
55
59
void
handleCommands
();
60
};
Player::commandDown
void commandDown(bool)
Definition:
player.cpp:29
Creature
Creates a Creature object that inherits Entity. Creates a Creature object that inherits Entity and co...
Definition:
creature.h:13
Player::left
bool left
Definition:
player.h:16
Player::handleCommands
void handleCommands()
Definition:
player.cpp:56
Vec2
Creates a Vec2 structure with functions Creates a Vec2 structure with overloaded operators to create ...
Definition:
vec2.h:7
texture.h
Player::up
bool up
Definition:
player.h:16
Player::commandUp
void commandUp(bool)
Definition:
player.cpp:20
Player::Player
Player(Texture *, Vec2, int, int)
Definition:
player.cpp:6
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
Player::right
bool right
Definition:
player.h:16
Player::~Player
~Player()
Definition:
player.cpp:13
Player::down
bool down
Definition:
player.h:16
Player
Creates a Player object that inherits Creature. Creates a Player object that inherits Creature and co...
Definition:
player.h:12
vec2.h
Player::commandLeft
void commandLeft(bool)
Definition:
player.cpp:38
Player::commandRight
void commandRight(bool)
Definition:
player.cpp:47
Generated on Wed Apr 1 2015 11:45:24 for Jamie Slowgrove - AI Assignment 1 by
1.8.8