pacman/lib/include/Pellets.hpp
2021-07-05 14:10:01 +02:00

27 lines
479 B
C++

#pragma once
#include "Board.hpp"
#include "Position.hpp"
namespace pacman {
class Pellets {
public:
explicit Pellets(const Board & board);
[[nodiscard]] GridPosition currentSprite() const {
return sprite;
};
[[nodiscard]] std::vector<GridPosition> currentPositions() const {
return positions;
}
bool eatPelletAtPosition(GridPosition p);
private:
const GridPosition sprite = { 1, 9 };
std::vector<GridPosition> positions;
};
} // namespace pacman