#include <Inky.h>
|
| Inky (float x, float y, int direction, std::shared_ptr< Intersection > destination) |
|
| ~Inky () |
|
std::shared_ptr< Intersection > | getDestination () |
|
void | setDestination (std::shared_ptr< Intersection > dest) |
|
Tile | getOrig () |
|
| Ghosts (float x, float y, int direction, Tile target, int dotCounter) |
|
| ~Ghosts () |
|
void | move (int pacmanX, int pacmanY, std::shared_ptr< Intersection > dest, int dotEaten) |
| move the ghost Plus de détails...
|
|
void | render (int frame, SDL_Renderer *renderer, SDL_Texture *texture) |
| render the ghost Plus de détails...
|
|
void | setMode (int mode) |
|
int | getMode () |
|
| Entity (float x, float y, int direction) |
|
void | setDirection (int d) |
|
float | getX () const |
|
float | getY () const |
|
◆ Inky()
Inky::Inky |
( |
float |
x, |
|
|
float |
y, |
|
|
int |
direction, |
|
|
std::shared_ptr< Intersection > |
destination |
|
) |
| |
◆ ~Inky()
◆ getDestination()
◆ getGoalTile()
Tile Inky::getGoalTile |
( |
int |
pacmanX, |
|
|
int |
pacmanY |
|
) |
| |
|
privatevirtual |
Get the Goal Tile object.
Inky's goal tile is 2 tiles ahead of Pacman's current tile, and then the vector from Blinky's current tile to that tile is doubled. However, this behaviour is not implemented yet.
- Paramètres
-
- Renvoie
- Tile
Implémente Ghosts.
◆ getOrig()
◆ setDestination()
void Inky::setDestination |
( |
std::shared_ptr< Intersection > |
dest | ) |
|
|
virtual |
◆ dest
◆ scatterTarget
La documentation de cette classe a été générée à partir du fichier suivant :