pacman/lib/SuperPellets.hpp
Corentin Jabot f911f6e2a8 Eat pellets
2021-06-16 13:59:16 +02:00

25 lines
457 B
C++

#pragma once
#include "Board.hpp"
#include "Position.hpp"
#include <SDL2/SDL_rect.h>
class SuperPellets {
public:
explicit SuperPellets(const Board & board);
[[nodiscard]] SDL_Point currentSprite() const {
return sprite;
}
[[nodiscard]] std::vector<SDL_Point> currentPositions() const {
return positions;
}
bool eatPelletAtPosition(Position p);
private:
const SDL_Point sprite = { 0, 9 };
std::vector<SDL_Point> positions;
};