2021-06-10 12:42:51 +00:00
|
|
|
#pragma once
|
2020-11-27 13:10:09 +00:00
|
|
|
|
2021-07-08 14:57:18 +00:00
|
|
|
#include "GameState.hpp"
|
|
|
|
#include "InputState.hpp"
|
2021-09-06 13:38:40 +00:00
|
|
|
#include "Canvas.hpp"
|
2020-11-28 13:10:25 +00:00
|
|
|
|
2021-07-05 12:10:01 +00:00
|
|
|
namespace pacman {
|
|
|
|
|
2020-11-27 13:10:09 +00:00
|
|
|
class Game {
|
|
|
|
public:
|
|
|
|
void run();
|
|
|
|
|
|
|
|
private:
|
2021-06-16 10:52:04 +00:00
|
|
|
Canvas canvas;
|
2021-07-08 14:57:18 +00:00
|
|
|
GameState gameState;
|
2020-11-27 13:10:09 +00:00
|
|
|
|
2021-06-20 16:52:34 +00:00
|
|
|
void processEvents(InputState & inputState);
|
2020-11-27 13:10:09 +00:00
|
|
|
};
|
2021-07-05 12:10:01 +00:00
|
|
|
|
|
|
|
} // namespace pacman
|