Creates a Player object that inherits Creature. Creates a Player object that inherits Creature and contains the details for the Player.
More...
#include <player.h>
|
| Player (Texture *, Vec2, int, int) |
|
| ~Player () |
|
void | commandUp (bool) |
|
void | commandDown (bool) |
|
void | commandLeft (bool) |
|
void | commandRight (bool) |
|
void | handleCommands () |
|
| Creature (Texture *, Vec2, Vec2, int, int, int, int) |
|
| ~Creature () |
|
void | updatePosition (float) |
|
void | setVelocities (Vec2) |
|
Vec2 | getVelocities () |
|
void | displayTiles (SDL_Renderer *, Map *) |
|
void | collisionUpdate (Map *, float) |
|
void | collisionUpdate (Entity *, float) |
|
| Entity (Texture *, Vec2, Vec2, int, int, int, int) |
|
| ~Entity () |
|
void | display (SDL_Renderer *) |
|
void | setPosition (Vec2) |
|
Vec2 | getPosition () |
|
int | getWidth () |
|
int | getHeight () |
|
|
float | collision (Map *, float, float, float, int, int, int, int, char) |
|
void | displayCollisionTest (SDL_Renderer *, Map *, int, int, int, int) |
|
Vec2 | velocities |
|
int | minX |
|
int | maxX |
|
int | minY |
|
int | maxY |
|
Vec2 | position |
|
Vec2 | source |
|
int | spriteWidth |
|
int | spriteHeight |
|
int | width |
|
int | height |
|
Texture * | texture |
|
Creates a Player object that inherits Creature. Creates a Player object that inherits Creature and contains the details for the Player.
Player::Player |
( |
Texture * |
inTexture, |
|
|
Vec2 |
inPos, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
Constructs a Player object
- Parameters
-
void Player::commandDown |
( |
bool |
command | ) |
|
Setter # Input command - Down
- Parameters
-
bool | The new state of the command |
void Player::commandLeft |
( |
bool |
command | ) |
|
Setter # Input command - Left
- Parameters
-
bool | The new state of the command |
void Player::commandRight |
( |
bool |
command | ) |
|
Setter # Input command - Right
- Parameters
-
bool | The new state of the command |
void Player::commandUp |
( |
bool |
command | ) |
|
Setter # Input command - Up
- Parameters
-
bool | The new state of the command |
void Player::handleCommands |
( |
| ) |
|
Handle the current set of commands
The documentation for this class was generated from the following files: