pacman/lib/Game.hpp
2021-06-10 14:42:51 +02:00

29 lines
490 B
C++

#pragma once
#include "Board.hpp"
#include "GameWindow.hpp"
#include "PacMan.hpp"
#include "Pellets.hpp"
#include "SuperPellets.hpp"
class InputState;
class Game {
public:
Game();
void run();
private:
GameWindow window;
Board board;
PacMan pacMan;
Pellets pellets;
SuperPellets superPellets;
static void processEvents(InputState & inputState);
static void keyToggle(const SDL_Event & event, InputState & inputState, bool on);
[[nodiscard]] static auto now();
};