Remove unused parameter

This commit is contained in:
Patricia Aas 2021-07-28 15:30:53 +02:00
parent 5b2b0d8e73
commit 71cb40ad18
6 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@
namespace pacman { namespace pacman {
Blinky::Blinky() Blinky::Blinky()
: Ghost(Atlas::Ghost::blinky, pacman::initialBlinkyPosition(), pacman::blinkyScatterTarget()) { : Ghost(Atlas::Ghost::blinky, pacman::initialBlinkyPosition()) {
} }
double Blinky::speed(const GameState & gameState) const { double Blinky::speed(const GameState & gameState) const {

View file

@ -3,7 +3,7 @@
namespace pacman { namespace pacman {
Clyde::Clyde() Clyde::Clyde()
: Ghost(Atlas::Ghost::clyde, initialClydePosition(), clydeScatterTarget()) { : Ghost(Atlas::Ghost::clyde, initialClydePosition()) {
} }
double Clyde::speed(const GameState & gameState) const { double Clyde::speed(const GameState & gameState) const {

View file

@ -4,7 +4,7 @@
namespace pacman { namespace pacman {
Ghost::Ghost(Atlas::Ghost spritesSet, Position startingPosition, Position scatterTarget) Ghost::Ghost(Atlas::Ghost spritesSet, Position startingPosition)
: spritesSet(spritesSet), : spritesSet(spritesSet),
pos(startingPosition), pos(startingPosition),
startingPosition(startingPosition) { startingPosition(startingPosition) {

View file

@ -3,7 +3,7 @@
namespace pacman { namespace pacman {
Inky::Inky() Inky::Inky()
: Ghost(Atlas::Ghost::inky, pacman::initialInkyPosition(), pacman::inkyScatterTarget()) { : Ghost(Atlas::Ghost::inky, pacman::initialInkyPosition()) {
} }
double Inky::speed(const GameState & gameState) const { double Inky::speed(const GameState & gameState) const {

View file

@ -3,7 +3,7 @@
namespace pacman { namespace pacman {
Pinky::Pinky() Pinky::Pinky()
: Ghost(Atlas::Ghost::speedy, pacman::initialSpeedyPosition(), pacman::speedyScatterTarget()) { : Ghost(Atlas::Ghost::speedy, pacman::initialSpeedyPosition()) {
} }
double Pinky::speed(const GameState & gameState) const { double Pinky::speed(const GameState & gameState) const {

View file

@ -19,7 +19,7 @@ public:
Eyes, Eyes,
}; };
explicit Ghost(Atlas::Ghost spritesSet, Position startingPosition, Position scatterTarget); explicit Ghost(Atlas::Ghost spritesSet, Position startingPosition);
[[nodiscard]] GridPosition currentSprite() const; [[nodiscard]] GridPosition currentSprite() const;