2021-06-10 12:42:51 +00:00
|
|
|
#pragma once
|
2020-11-28 13:10:25 +00:00
|
|
|
|
|
|
|
#include "Board.hpp"
|
2021-06-16 10:52:04 +00:00
|
|
|
#include "Position.hpp"
|
2021-06-22 10:52:02 +00:00
|
|
|
|
2021-07-05 12:10:01 +00:00
|
|
|
namespace pacman {
|
|
|
|
|
2020-11-28 13:10:25 +00:00
|
|
|
class SuperPellets {
|
|
|
|
public:
|
2021-07-07 09:39:09 +00:00
|
|
|
explicit SuperPellets();
|
2020-11-28 13:10:25 +00:00
|
|
|
|
2021-08-02 13:31:32 +00:00
|
|
|
GridPosition currentSprite() const {
|
2020-11-28 13:58:15 +00:00
|
|
|
return sprite;
|
2020-11-28 13:10:25 +00:00
|
|
|
}
|
|
|
|
|
2021-10-05 09:58:06 +00:00
|
|
|
std::vector<GridPosition> allPellets() const {
|
2020-11-28 13:10:25 +00:00
|
|
|
return positions;
|
|
|
|
}
|
|
|
|
|
2021-09-17 14:44:16 +00:00
|
|
|
bool isPellet(GridPosition p) const;
|
2021-07-05 11:54:54 +00:00
|
|
|
bool eatPelletAtPosition(GridPosition p);
|
2021-06-16 11:59:16 +00:00
|
|
|
|
2020-11-28 13:10:25 +00:00
|
|
|
private:
|
2021-07-05 09:46:49 +00:00
|
|
|
const GridPosition sprite = { 0, 9 };
|
|
|
|
std::vector<GridPosition> positions;
|
2020-11-28 13:10:25 +00:00
|
|
|
};
|
2021-07-05 12:10:01 +00:00
|
|
|
|
|
|
|
} // namespace pacman
|