c7ef086d3d
This simplifies the rendering code and remove all(!) pointers. There is a number of unresolved issues * Windows build ? * position delta computation: migrating to SFML seems to have modified the frame rate.
29 lines
412 B
C++
29 lines
412 B
C++
#pragma once
|
|
|
|
#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;
|
|
|
|
void eatPellets();
|
|
|
|
void processEvents(InputState & inputState);
|
|
|
|
[[nodiscard]] static auto now();
|
|
};
|