#pragma once #include "Board.hpp" #include "Canvas.hpp" #include "Ghost.hpp" #include "PacMan.hpp" #include "Pellets.hpp" #include "Score.hpp" #include "SuperPellets.hpp" class InputState; class Game { public: Game(); void run(); private: friend class Canvas; Canvas canvas; Board board; PacMan pacMan; Pellets pellets; SuperPellets superPellets; Blinky blinky; Speedy speedy; Inky inky; Clyde clyde; Score score; void step(std::chrono::milliseconds delta, InputState inputState); void eatPellets(); void processEvents(InputState & inputState); [[nodiscard]] static auto now(); };