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