pacman/lib/Game.hpp
Corentin Jabot 93186dc8b9 Add ghosts
No movement for now!
2021-06-24 18:33:08 +02:00

37 lines
622 B
C++

#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();
};