c7ef086d3d
This simplifies the rendering code and remove all(!) pointers. There is a number of unresolved issues * Windows build ? * position delta computation: migrating to SFML seems to have modified the frame rate.
23 lines
428 B
C++
23 lines
428 B
C++
#pragma once
|
|
|
|
#include "Board.hpp"
|
|
#include "Position.hpp"
|
|
|
|
class Pellets {
|
|
public:
|
|
explicit Pellets(const Board & board);
|
|
|
|
[[nodiscard]] PositionInt currentSprite() const {
|
|
return sprite;
|
|
};
|
|
|
|
[[nodiscard]] std::vector<PositionInt> currentPositions() const {
|
|
return positions;
|
|
}
|
|
|
|
bool eatPelletAtPosition(Position p);
|
|
|
|
private:
|
|
const PositionInt sprite = { 1, 9 };
|
|
std::vector<PositionInt> positions;
|
|
};
|