pacman/lib/include/SuperPellets.hpp
2021-10-05 12:11:29 +02:00

28 lines
474 B
C++

#pragma once
#include "Board.hpp"
#include "Position.hpp"
namespace pacman {
class SuperPellets {
public:
explicit SuperPellets();
GridPosition currentSprite() const {
return sprite;
}
std::vector<GridPosition> allPellets() const {
return positions;
}
bool isPellet(GridPosition p) const;
bool eatPelletAtPosition(GridPosition p);
private:
const GridPosition sprite = { 0, 9 };
std::vector<GridPosition> positions;
};
} // namespace pacman