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"
|
2020-11-28 13:10:25 +00:00
|
|
|
|
|
|
|
#include <SDL2/SDL_rect.h>
|
|
|
|
|
|
|
|
class SuperPellets {
|
|
|
|
public:
|
|
|
|
explicit SuperPellets(const Board & board);
|
|
|
|
|
2021-06-15 21:54:35 +00:00
|
|
|
[[nodiscard]] SDL_Point currentSprite() const {
|
2020-11-28 13:58:15 +00:00
|
|
|
return sprite;
|
2020-11-28 13:10:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[[nodiscard]] std::vector<SDL_Point> currentPositions() const {
|
|
|
|
return positions;
|
|
|
|
}
|
|
|
|
|
2021-06-16 11:59:16 +00:00
|
|
|
bool eatPelletAtPosition(Position p);
|
|
|
|
|
2020-11-28 13:10:25 +00:00
|
|
|
private:
|
2021-06-15 21:54:35 +00:00
|
|
|
const SDL_Point sprite = { 0, 9 };
|
2020-11-28 13:10:25 +00:00
|
|
|
std::vector<SDL_Point> positions;
|
|
|
|
};
|