Fixes for clang-tidy.
This commit is contained in:
parent
db0756ca21
commit
260adb54db
3 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ constexpr int NORMAL_PELLET_POINTS = 10;
|
|||
constexpr int POWER_PELLET_POINTS = 50;
|
||||
|
||||
void GameState::step(std::chrono::milliseconds delta) {
|
||||
pacManAI.update(pacMan, pellets, superPellets);
|
||||
pacManAI.update(pacMan, pellets);
|
||||
pacMan.update(delta, pacManAI.suggestedDirection());
|
||||
|
||||
if (isPacManDying()) {
|
||||
|
|
|
@ -8,7 +8,7 @@ Direction PacManAI::suggestedDirection() const {
|
|||
return dir;
|
||||
}
|
||||
|
||||
void PacManAI::update(const PacMan & pacMan, const Pellets & pellets, const SuperPellets & superPellets) {
|
||||
void PacManAI::update(const PacMan & pacMan, const Pellets & pellets) {
|
||||
const GridPosition pacManGridPos = pacMan.positionInGrid();
|
||||
const GridPosition currentGridPos = positionToGridPosition(pos);
|
||||
if (currentGridPos == pacManGridPos) {
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace pacman {
|
|||
|
||||
class PacManAI {
|
||||
public:
|
||||
void update(const PacMan & pacMan, const Pellets & pellets, const SuperPellets & superPellets);
|
||||
void update(const PacMan & pacMan, const Pellets & pellets);
|
||||
Direction suggestedDirection() const;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue