30 void move(
int pacmanX,
int pacmanY, std::shared_ptr<Intersection> dest,
int dotEaten);
41 void render(
int frame, SDL_Renderer *renderer, SDL_Texture *texture);
64 std::shared_ptr<Intersection>
makeTurn(
int pacmanX,
int pacmanY,
65 std::shared_ptr<Intersection> dest);
Entity class.
Definition: Entity.h:18
int direction
Definition: Entity.h:40
float x
Definition: Entity.h:37
float y
Definition: Entity.h:38
Ghosts class.
Definition: Ghosts.h:15
std::shared_ptr< Intersection > makeTurn(int pacmanX, int pacmanY, std::shared_ptr< Intersection > dest)
return the next intersection
Definition: Ghosts.cpp:108
virtual Tile getGoalTile(int pacmanX, int pacmanY)=0
virtual void setDestination(std::shared_ptr< Intersection > dest)=0
int previousMode
Definition: Ghosts.h:52
std::mt19937 rng
Definition: Ghosts.h:69
void setMode(int mode)
Definition: Ghosts.cpp:11
Tile scatterTarget
Definition: Ghosts.h:67
int getMode()
Definition: Ghosts.cpp:23
int mode
Definition: Ghosts.h:51
virtual std::shared_ptr< Intersection > getDestination()=0
bool isFree
Definition: Ghosts.h:72
SDL_Rect getSprite(int frame, int direction)
Definition: Ghosts.cpp:25
std::vector< SDL_Rect > sprites
Definition: Ghosts.h:49
~Ghosts()
Definition: Ghosts.cpp:9
void move(int pacmanX, int pacmanY, std::shared_ptr< Intersection > dest, int dotEaten)
move the ghost
Definition: Ghosts.cpp:45
int oppositeDirection(int direction)
Definition: Ghosts.cpp:93
Uint32 modeTimer
Definition: Ghosts.h:70
void render(int frame, SDL_Renderer *renderer, SDL_Texture *texture)
render the ghost
Definition: Ghosts.cpp:35
int dotCounter
Definition: Ghosts.h:71
Ghosts(float x, float y, int direction, Tile target, int dotCounter)
Definition: Ghosts.cpp:3
#define SCATTER
Definition: constants.h:44
Tile struct.
Definition: Maze.h:17