31 lines
448 B
C++
31 lines
448 B
C++
#pragma once
|
|
|
|
#include "Score.hpp"
|
|
#include "Board.hpp"
|
|
#include "Canvas.hpp"
|
|
#include "PacMan.hpp"
|
|
#include "Pellets.hpp"
|
|
#include "SuperPellets.hpp"
|
|
|
|
class InputState;
|
|
|
|
class Game {
|
|
public:
|
|
Game();
|
|
|
|
void run();
|
|
|
|
private:
|
|
Canvas canvas;
|
|
Board board;
|
|
PacMan pacMan;
|
|
Pellets pellets;
|
|
SuperPellets superPellets;
|
|
Score score;
|
|
|
|
void eatPellets();
|
|
|
|
void processEvents(InputState & inputState);
|
|
|
|
[[nodiscard]] static auto now();
|
|
};
|