This commit is contained in:
Patricia Aas 2021-07-28 17:01:22 +02:00
parent 4d53ccce18
commit 99cf57956c
8 changed files with 8 additions and 4 deletions

View file

@ -4,6 +4,7 @@ namespace pacman {
Blinky::Blinky()
: Ghost(Atlas::Ghost::blinky) {
pos = initialPosition();
}
double Blinky::speed(const GameState & gameState) const {

View file

@ -4,6 +4,7 @@ namespace pacman {
Clyde::Clyde()
: Ghost(Atlas::Ghost::clyde) {
pos = initialPosition();
}
double Clyde::speed(const GameState & gameState) const {

View file

@ -4,6 +4,7 @@ namespace pacman {
Inky::Inky()
: Ghost(Atlas::Ghost::inky) {
pos = initialPosition();
}
double Inky::speed(const GameState & gameState) const {

View file

@ -4,6 +4,7 @@ namespace pacman {
Pinky::Pinky()
: Ghost(Atlas::Ghost::pinky) {
pos = initialPosition();
}
double Pinky::speed(const GameState & gameState) const {

View file

@ -4,7 +4,7 @@
namespace pacman {
class Blinky : public Ghost {
class Blinky final : public Ghost {
public:
Blinky();

View file

@ -4,7 +4,7 @@
namespace pacman {
class Clyde : public Ghost {
class Clyde final : public Ghost {
public:
explicit Clyde();

View file

@ -4,7 +4,7 @@
namespace pacman {
class Inky : public Ghost {
class Inky final : public Ghost {
public:
explicit Inky();

View file

@ -4,7 +4,7 @@
namespace pacman {
class Pinky : public Ghost {
class Pinky final : public Ghost {
public:
explicit Pinky();