Pacman Torben Petré
Loading...
Searching...
No Matches
AmbushGhost.h
Go to the documentation of this file.
1#ifndef AMBUSHGHOST_H
2#define AMBUSHGHOST_H
3
4#include "GhostModel.h"
5
6
7namespace logic {
8
9 class AmbushGhost final : public GhostModel {
10 public:
20 explicit AmbushGhost(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#endif //AMBUSHGHOST_H
AmbushGhost(float normalizedX, float normalizedY, float mapWidth, float mapHeight, double cooldown)
Initializes base class GhostModel. AmbushGhost has specific chasing behaviour.
Definition AmbushGhost.cpp:7
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