2020-11-28 13:10:25 +00:00
|
|
|
#ifndef PACMAN_PELLETS_HPP
|
|
|
|
#define PACMAN_PELLETS_HPP
|
|
|
|
|
|
|
|
#include "Position.hpp"
|
|
|
|
#include "Board.hpp"
|
|
|
|
|
|
|
|
#include <SDL2/SDL_rect.h>
|
|
|
|
|
|
|
|
class Pellets {
|
|
|
|
public:
|
|
|
|
explicit Pellets(const Board & board);
|
|
|
|
|
|
|
|
[[nodiscard]] SDL_Rect 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2020-11-28 13:58:15 +00:00
|
|
|
const SDL_Rect sprite = {1 * 32, 9 * 32, 32, 32};
|
2020-11-28 13:10:25 +00:00
|
|
|
std::vector<SDL_Point> positions;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //PACMAN_PELLETS_HPP
|