16 Pacman(
float x,
float y,
int direction, std::shared_ptr<Intersection> destination);
36 void render(
int frame, SDL_Renderer *renderer, SDL_Texture *texture);
44 std::shared_ptr<Intersection>
dest;
54 std::shared_ptr<Intersection>
makeTurn();
Entity class.
Definition: Entity.h:18
int direction
Definition: Entity.h:40
float x
Definition: Entity.h:37
float y
Definition: Entity.h:38
Pacman class.
Definition: Pacman.h:14
bool getEating() const
Definition: Pacman.cpp:23
void render(int frame, SDL_Renderer *renderer, SDL_Texture *texture)
render the pacman
Definition: Pacman.cpp:129
std::shared_ptr< Intersection > dest
Definition: Pacman.h:44
bool isEating
Definition: Pacman.h:57
void setEating(bool e)
Definition: Pacman.cpp:21
int getX() const
Definition: Pacman.cpp:17
void setPlayerDirection(int d)
Definition: Pacman.cpp:25
Pacman(float x, float y, int direction, std::shared_ptr< Intersection > destination)
Definition: Pacman.cpp:3
SDL_Rect lastSprite
Definition: Pacman.h:56
SDL_Rect getSprite(int frame, int direction)
Definition: Pacman.cpp:120
std::vector< SDL_Rect > sprites
Definition: Pacman.h:45
int getY() const
Definition: Pacman.cpp:19
int playerDirection
Definition: Pacman.h:55
std::shared_ptr< Intersection > makeTurn()
return the next intersection
Definition: Pacman.cpp:57
void move()
move the pacman
Definition: Pacman.cpp:85
~Pacman()
Definition: Pacman.cpp:15
#define RIGHT
Definition: constants.h:37