pacman/lib/Pellets.hpp

24 lines
407 B
C++
Raw Normal View History

2021-06-10 12:42:51 +00:00
#pragma once
#include "Board.hpp"
#include "Position.hpp"
#include <SDL2/SDL_rect.h>
class Pellets {
public:
explicit Pellets(const Board & board);
[[nodiscard]] SDL_Point currentSprite() const {
2020-11-28 13:58:15 +00:00
return sprite;
};
[[nodiscard]] std::vector<SDL_Point> currentPositions() const {
return positions;
}
private:
const SDL_Point sprite = { 1, 9 };
std::vector<SDL_Point> positions;
};