Creates an Entity object Creates an Entity object with all the information about the Entity.
More...
#include <entity.h>
Creates an Entity object Creates an Entity object with all the information about the Entity.
Definition at line 7 of file entity.h.
Entity::Entity |
( |
float |
, |
|
|
float |
, |
|
|
int |
, |
|
|
int |
, |
|
|
int |
|
|
) |
| |
Constructs an Entity object
- Parameters
-
float | initial x position. |
float | initial y position. |
int | initial x scale. |
int | initial y scale. |
int | the current animation index; |
int Entity::getAnimationIndex |
( |
| ) |
|
Getter # animation index
- Returns
- int the animation index of the Entity object.
bool Entity::getDisplay |
( |
| ) |
|
Getter # display
- Returns
- bool if the Entity object will display.
Getter # x position
- Returns
- float the x position of the Entity object.
int Entity::getXScale |
( |
| ) |
|
Getter # x scale
- Returns
- int the x scale of the Entity object.
Getter # y position
- Returns
- float the y position of the Entity object.
int Entity::getYScale |
( |
| ) |
|
Getter # y scale
- Returns
- int the y scale of the Entity object.
float Entity::getYVelocity |
( |
| ) |
|
Getter # y velocity
- Returns
- float the y velocity of the Entity object.
void Entity::setAnimationIndex |
( |
int |
| ) |
|
Setter # animation index Sets the animation index of the Entity object to the inputed index.
- Parameters
-
int | the inputed animation index |
void Entity::setDisplay |
( |
bool |
| ) |
|
Setter # display Sets the display boolean of the Entity object.
- Parameters
-
bool | the inputed display bool |
void Entity::setX |
( |
float |
| ) |
|
Setter # x position Sets the x position of the Entity object to the inputed x position.
- Parameters
-
float | the inputed x position |
void Entity::setXScale |
( |
int |
| ) |
|
Setter # x scale Sets the x scale of the Entity object to the inputed x scale.
- Parameters
-
void Entity::setY |
( |
float |
| ) |
|
Setter # y position Sets the y position of the Entity object to the inputed y position.
- Parameters
-
float | the inputed y position |
void Entity::setYScale |
( |
int |
| ) |
|
Setter # y scale Sets the y scale of the Entity object to the inputed y scale.
- Parameters
-
void Entity::setYVelocity |
( |
float |
| ) |
|
Setter # y velocity Sets the y velocity of the Entity object to the inputed y velocity.
- Parameters
-
float | the inputed y velocity |
void Entity::updateY |
( |
float |
| ) |
|
Updates the Entity y position Updates the Entity y position using the velocity and the dt.
- Parameters
-
int Entity::animationIndex |
|
protected |
The documentation for this class was generated from the following file: