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
entity.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
10
class
Entity
11
{
12
protected
:
14
Vec2
position
;
16
Vec2
source
;
18
int
spriteWidth
,
spriteHeight
;
20
int
width
,
height
;
22
Texture
*
texture
;
23
public
:
34
Entity
(
Texture
*,
Vec2
,
Vec2
,
int
,
int
,
int
,
int
);
35
39
~Entity
();
40
45
void
display
(SDL_Renderer*);
46
51
void
setPosition
(
Vec2
);
52
57
Vec2
getPosition
();
58
63
int
getWidth
();
64
69
int
getHeight
();
70
};
Entity::setPosition
void setPosition(Vec2)
Definition:
entity.cpp:38
Entity::spriteWidth
int spriteWidth
Definition:
entity.h:18
Vec2
Creates a Vec2 structure with functions Creates a Vec2 structure with overloaded operators to create ...
Definition:
vec2.h:7
texture.h
Entity::height
int height
Definition:
entity.h:20
Entity::getWidth
int getWidth()
Definition:
entity.cpp:56
Entity
Creates an Entity object that contains the details for the Entity.
Definition:
entity.h:10
Entity::position
Vec2 position
Definition:
entity.h:14
Entity::width
int width
Definition:
entity.h:20
Entity::spriteHeight
int spriteHeight
Definition:
entity.h:18
Entity::getHeight
int getHeight()
Definition:
entity.cpp:65
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
Entity::Entity
Entity(Texture *, Vec2, Vec2, int, int, int, int)
Definition:
entity.cpp:6
Entity::~Entity
~Entity()
Definition:
entity.cpp:21
Entity::display
void display(SDL_Renderer *)
Definition:
entity.cpp:28
Entity::source
Vec2 source
Definition:
entity.h:16
Entity::texture
Texture * texture
Definition:
entity.h:22
Entity::getPosition
Vec2 getPosition()
Definition:
entity.cpp:47
vec2.h
Generated on Wed Apr 1 2015 11:45:24 for Jamie Slowgrove - AI Assignment 1 by
1.8.8