Caseus Tower
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
entity.h
Go to the documentation of this file.
1
#pragma once
2
7
class
Entity
8
{
9
protected
:
10
/*dimensions*/
11
int
xScale
;
12
int
yScale
;
13
/*position*/
14
float
x
;
15
float
y
;
16
/*y velocity*/
17
float
yVelocity
;
18
/*should the entity be displayed*/
19
bool
display
;
20
/*current animation index*/
21
int
animationIndex
;
22
public
:
31
Entity
(
float
,
float
,
int
,
int
,
int
);
32
36
~Entity
();
37
43
void
setX
(
float
);
44
50
void
setY
(
float
);
51
57
void
setXScale
(
int
);
58
64
void
setYScale
(
int
);
65
71
void
setYVelocity
(
float
);
72
78
void
setDisplay
(
bool
);
79
85
void
setAnimationIndex
(
int
);
86
91
float
getX
();
92
97
float
getY
();
98
103
int
getXScale
();
104
109
int
getYScale
();
110
115
float
getYVelocity
();
116
121
bool
getDisplay
();
122
127
int
getAnimationIndex
();
128
134
void
updateY
(
float
);
135
};
Entity::getX
float getX()
Entity::setY
void setY(float)
Entity::setX
void setX(float)
Entity::yVelocity
float yVelocity
Definition:
entity.h:17
Entity::getYScale
int getYScale()
Entity::getYVelocity
float getYVelocity()
Entity::setAnimationIndex
void setAnimationIndex(int)
Entity::setDisplay
void setDisplay(bool)
Entity::y
float y
Definition:
entity.h:15
Entity::setYVelocity
void setYVelocity(float)
Entity
Creates an Entity object Creates an Entity object with all the information about the Entity...
Definition:
entity.h:7
Entity::animationIndex
int animationIndex
Definition:
entity.h:21
Entity::setYScale
void setYScale(int)
Entity::xScale
int xScale
Definition:
entity.h:11
Entity::x
float x
Definition:
entity.h:14
Entity::getAnimationIndex
int getAnimationIndex()
Entity::display
bool display
Definition:
entity.h:19
Entity::yScale
int yScale
Definition:
entity.h:12
Entity::setXScale
void setXScale(int)
Entity::~Entity
~Entity()
Entity::Entity
Entity(float, float, int, int, int)
Entity::getXScale
int getXScale()
Entity::getDisplay
bool getDisplay()
Entity::getY
float getY()
Entity::updateY
void updateY(float)
Caseus Tower
entity.h
Generated on Wed Feb 4 2015 10:22:33 for Caseus Tower by
1.8.8