Remove unused parameter
This commit is contained in:
parent
5b2b0d8e73
commit
71cb40ad18
6 changed files with 6 additions and 6 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue