pacman/lib/SuperPellets.hpp

26 lines
457 B
C++
Raw Normal View History

2021-06-10 12:42:51 +00:00
#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 {
2020-11-28 13:58:15 +00:00
return sprite;
}
[[nodiscard]] std::vector<SDL_Point> currentPositions() const {
return positions;
}
2021-06-16 11:59:16 +00:00
bool eatPelletAtPosition(Position p);
private:
const SDL_Point sprite = { 0, 9 };
std::vector<SDL_Point> positions;
};