#include <Clyde.h>
|
| | Clyde (float x, float y, int direction, std::shared_ptr< Intersection > destination) |
| |
| | ~Clyde () |
| |
| 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 |
| |
◆ Clyde()
| Clyde::Clyde |
( |
float |
x, |
|
|
float |
y, |
|
|
int |
direction, |
|
|
std::shared_ptr< Intersection > |
destination |
|
) |
| |
◆ ~Clyde()
◆ getDestination()
◆ getGoalTile()
| Tile Clyde::getGoalTile |
( |
int |
pacmanX, |
|
|
int |
pacmanY |
|
) |
| |
|
privatevirtual |
Get the Goal Tile object.
Clyde's goal tile is pacman's current tile if the distance between Clyde and Pacman is greater than 8 tiles. Otherwise, Clyde's goal tile is it's scatter target.
- Paramètres
-
- Renvoie
- Tile
Implémente Ghosts.
◆ getOrig()
◆ setDestination()
| void Clyde::setDestination |
( |
std::shared_ptr< Intersection > |
dest | ) |
|
|
virtual |
◆ dest
◆ scatterTarget
| Tile Clyde::scatterTarget |
|
private |
La documentation de cette classe a été générée à partir du fichier suivant :