pacman/lib/SuperPellets.hpp

23 lines
436 B
C++
Raw Normal View History

2021-06-10 12:42:51 +00:00
#pragma once
#include "Board.hpp"
#include "Position.hpp"
class SuperPellets {
public:
explicit SuperPellets(const Board & board);
[[nodiscard]] PositionInt currentSprite() const {
2020-11-28 13:58:15 +00:00
return sprite;
}
[[nodiscard]] std::vector<PositionInt> currentPositions() const {
return positions;
}
2021-06-16 11:59:16 +00:00
bool eatPelletAtPosition(Position p);
private:
const PositionInt sprite = { 0, 9 };
std::vector<PositionInt> positions;
};