Rename variables

This commit is contained in:
Patricia Aas 2020-11-28 14:58:15 +01:00
parent 4789e93d62
commit b89a51915f
2 changed files with 4 additions and 4 deletions

View file

@ -11,7 +11,7 @@ public:
explicit Pellets(const Board & board);
[[nodiscard]] SDL_Rect currentSprite() const {
return pellet;
return sprite;
};
[[nodiscard]] std::vector<SDL_Point> currentPositions() const {
@ -19,7 +19,7 @@ public:
}
private:
const SDL_Rect pellet = {1 * 32, 9 * 32, 32, 32};
const SDL_Rect sprite = {1 * 32, 9 * 32, 32, 32};
std::vector<SDL_Point> positions;
};

View file

@ -11,7 +11,7 @@ public:
explicit SuperPellets(const Board & board);
[[nodiscard]] SDL_Rect currentSprite() const {
return super_pellet;
return sprite;
}
[[nodiscard]] std::vector<SDL_Point> currentPositions() const {
@ -19,7 +19,7 @@ public:
}
private:
const SDL_Rect super_pellet = {0 * 32, 9 * 32, 32, 32};
const SDL_Rect sprite = {0 * 32, 9 * 32, 32, 32};
std::vector<SDL_Point> positions;
};