Fixes for clang-tidy.

This commit is contained in:
Ólafur Waage 2021-09-22 14:06:17 +02:00
parent db0756ca21
commit 260adb54db
3 changed files with 3 additions and 3 deletions

View File

@ -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()) {

View File

@ -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) {

View File

@ -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: