diff --git a/pacman/lib/Pellets.hpp b/pacman/lib/Pellets.hpp index 34c509a..1a6e7bf 100644 --- a/pacman/lib/Pellets.hpp +++ b/pacman/lib/Pellets.hpp @@ -11,7 +11,7 @@ public: explicit Pellets(const Board & board); [[nodiscard]] SDL_Rect currentSprite() const { - return pellet; + return sprite; }; [[nodiscard]] std::vector 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 positions; }; diff --git a/pacman/lib/SuperPellets.hpp b/pacman/lib/SuperPellets.hpp index f8c6faa..aa67eb7 100644 --- a/pacman/lib/SuperPellets.hpp +++ b/pacman/lib/SuperPellets.hpp @@ -11,7 +11,7 @@ public: explicit SuperPellets(const Board & board); [[nodiscard]] SDL_Rect currentSprite() const { - return super_pellet; + return sprite; } [[nodiscard]] std::vector 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 positions; };