Creates a Creature object that inherits Entity.
More...
#include <creature.h>
|
|
float | velocityX |
| |
|
float | velocityY |
| |
|
Texture * | texture |
| |
|
int | srcWidth |
| |
|
int | srcHeight |
| |
|
int | srcX |
| |
|
int | srcY |
| |
|
int | width |
| |
|
int | height |
| |
|
float | x |
| |
|
float | y |
| |
Creates a Creature object that inherits Entity.
| Creature::Creature |
( |
Texture * |
inputTexture, |
|
|
float |
inputX, |
|
|
float |
inputY |
|
) |
| |
Constructs a Creature object Constructs the Creature object.
- Parameters
-
| Texture* | a pointer to a Texture loaded into memory. |
| float | initial x position. |
| float | initial y position. |
| float Creature::getVelocityX |
( |
| ) |
|
Getter # x velocity
- Returns
- the x velocity of the Creature object.
| float Creature::getVelocityY |
( |
| ) |
|
Getter # y velocity
- Returns
- the y velocity of the Creature object.
| void Creature::setVelocityX |
( |
float |
inputVelocity | ) |
|
Setter # x velocity Sets the x velocity of the Creature object to the inputed velocity.
- Parameters
-
| float | the inputed velocity |
| void Creature::setVelocityY |
( |
float |
inputVelocity | ) |
|
Setter # y velocity Sets the y velocity of the Creature object to the inputed velocity.
- Parameters
-
| float | the inputed velocity |
| void Creature::updateX |
( |
float |
dt | ) |
|
Updates the x position of the Creature
- Parameters
-
| float | the inputed deltaTime |
| void Creature::updateY |
( |
float |
dt | ) |
|
Updates the y position of the Creature
- Parameters
-
| float | the inputed deltaTime |
The documentation for this class was generated from the following files:
- PGGAssignment1SDL/creature.h
- PGGAssignment1SDL/creature.cpp