From 71cb40ad18a04fd0d8ed3fc34019722e4ed22146 Mon Sep 17 00:00:00 2001 From: Patricia Aas Date: Wed, 28 Jul 2021 15:30:53 +0200 Subject: [PATCH] Remove unused parameter --- lib/Blinky.cpp | 2 +- lib/Clyde.cpp | 2 +- lib/Ghost.cpp | 2 +- lib/Inky.cpp | 2 +- lib/Pinky.cpp | 2 +- lib/include/Ghost.hpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Blinky.cpp b/lib/Blinky.cpp index 7c7ca31..7dba87b 100644 --- a/lib/Blinky.cpp +++ b/lib/Blinky.cpp @@ -3,7 +3,7 @@ namespace pacman { Blinky::Blinky() - : Ghost(Atlas::Ghost::blinky, pacman::initialBlinkyPosition(), pacman::blinkyScatterTarget()) { + : Ghost(Atlas::Ghost::blinky, pacman::initialBlinkyPosition()) { } double Blinky::speed(const GameState & gameState) const { diff --git a/lib/Clyde.cpp b/lib/Clyde.cpp index 6cc5f1f..eb2ea99 100644 --- a/lib/Clyde.cpp +++ b/lib/Clyde.cpp @@ -3,7 +3,7 @@ namespace pacman { Clyde::Clyde() - : Ghost(Atlas::Ghost::clyde, initialClydePosition(), clydeScatterTarget()) { + : Ghost(Atlas::Ghost::clyde, initialClydePosition()) { } double Clyde::speed(const GameState & gameState) const { diff --git a/lib/Ghost.cpp b/lib/Ghost.cpp index d1d4a79..f05a347 100644 --- a/lib/Ghost.cpp +++ b/lib/Ghost.cpp @@ -4,7 +4,7 @@ namespace pacman { -Ghost::Ghost(Atlas::Ghost spritesSet, Position startingPosition, Position scatterTarget) +Ghost::Ghost(Atlas::Ghost spritesSet, Position startingPosition) : spritesSet(spritesSet), pos(startingPosition), startingPosition(startingPosition) { diff --git a/lib/Inky.cpp b/lib/Inky.cpp index 4445b81..cf853ae 100644 --- a/lib/Inky.cpp +++ b/lib/Inky.cpp @@ -3,7 +3,7 @@ namespace pacman { Inky::Inky() - : Ghost(Atlas::Ghost::inky, pacman::initialInkyPosition(), pacman::inkyScatterTarget()) { + : Ghost(Atlas::Ghost::inky, pacman::initialInkyPosition()) { } double Inky::speed(const GameState & gameState) const { diff --git a/lib/Pinky.cpp b/lib/Pinky.cpp index 16c79df..4d7f3a9 100644 --- a/lib/Pinky.cpp +++ b/lib/Pinky.cpp @@ -3,7 +3,7 @@ namespace pacman { Pinky::Pinky() - : Ghost(Atlas::Ghost::speedy, pacman::initialSpeedyPosition(), pacman::speedyScatterTarget()) { + : Ghost(Atlas::Ghost::speedy, pacman::initialSpeedyPosition()) { } double Pinky::speed(const GameState & gameState) const { diff --git a/lib/include/Ghost.hpp b/lib/include/Ghost.hpp index a665445..88ea0dd 100644 --- a/lib/include/Ghost.hpp +++ b/lib/include/Ghost.hpp @@ -19,7 +19,7 @@ public: Eyes, }; - explicit Ghost(Atlas::Ghost spritesSet, Position startingPosition, Position scatterTarget); + explicit Ghost(Atlas::Ghost spritesSet, Position startingPosition); [[nodiscard]] GridPosition currentSprite() const;