48 void move(
const World& world,
float dt)
override;
68 bool gridTargetReached(
const World& world)
override;
float mapWidth
Definition EntityModel.h:120
MovingEntityModel(float normalizedX, float normalizedY, float mapWidth, float mapHeight, float speed)
Subclass of EntityModel to be used for any moving entity.
Definition EntityModel.cpp:22
Moves direction
Definition EntityModel.h:131
float mapHeight
Definition EntityModel.h:121
void respawn() override
Tell Pacman to respawn. It will go back to its spawnpoint and change everything back to their default...
Definition PacmanModel.cpp:123
void setNextDirection(const Moves &move)
Update the direction of Pacman. This move is buffed if Pacman can not currently move in this directio...
Definition PacmanModel.cpp:33
PacmanModel(float normalizedX, float normalizedY, float mapWidth, float mapHeight)
Definition PacmanModel.cpp:10
bool isMoving() const
Definition PacmanModel.cpp:28
void move(const World &world, float dt) override
This function is to be called inside the World loop. Moves Pacman in its current direction....
Definition PacmanModel.cpp:90
Moves getNextDirection() const
Pacman works with input buffering, this function returns the buffered direction.
Definition PacmanModel.cpp:24
Definition Difficulty.h:6
Moves
Definition EntityModel.h:8