164db664ef
* Remove non-pacman exercises. * Use vcpkg instead of conan ( make vcpkg a submodule) * Merge the readmem these will need to be improve later
32 lines
545 B
C++
32 lines
545 B
C++
#ifndef PACMAN_GAME_H
|
|
#define PACMAN_GAME_H
|
|
|
|
#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();
|
|
};
|
|
|
|
#endif //PACMAN_GAME_H
|