Pacman Torben Petré
Loading...
Searching...
No Matches
ChasingGhost.h
Go to the documentation of this file.
1#ifndef CHASINGGHOST_H
2#define CHASINGGHOST_H
3
4#include "GhostModel.h"
5
6
7namespace logic {
8
9 class ChasingGhost final : public GhostModel {
10 public:
20 explicit ChasingGhost(float normalizedX, float normalizedY, float mapWidth, float mapHeight, double cooldown);
21
22 private:
32 Moves decideNextMove(const World &world) override;
33 };
34}
35
36
37
38#endif //CHASINGGHOST_H
ChasingGhost(float normalizedX, float normalizedY, float mapWidth, float mapHeight, double cooldown)
Initializes base class GhostModel. ChasingGhost has specific chasing behaviour.
Definition ChasingGhost.cpp:8
GhostModel(float normalizedX, float normalizedY, float mapWidth, float mapHeight, double cooldown)
Base class for Ghosts. Handles Ghost state and how that influences ghost behaviour.
Definition GhostModel.cpp:11
float mapWidth
Definition EntityModel.h:120
float mapHeight
Definition EntityModel.h:121
Definition World.h:16
Definition Difficulty.h:6
Moves
Definition EntityModel.h:8