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 {
|
||||
|
||||
Blinky::Blinky()
|
||||
: Ghost(Atlas::Ghost::blinky, pacman::initialBlinkyPosition(), pacman::blinkyScatterTarget()) {
|
||||
: Ghost(Atlas::Ghost::blinky, pacman::initialBlinkyPosition()) {
|
||||
}
|
||||
|
||||
double Blinky::speed(const GameState & gameState) const {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue