Game.h 433 B

123456789101112131415161718192021222324
  1. #ifndef GAME_H
  2. #define GAME_H
  3. #include "input/Buttons.h"
  4. #include "input/Controller.h"
  5. #include "utils/Clock.h"
  6. #include "rendering/Renderer.h"
  7. class Game final {
  8. public:
  9. Game(Controller& c, const Clock& fps, const Clock& tps);
  10. void tick();
  11. void render(float lag, Renderer& renderer) const;
  12. bool isRunning() const;
  13. private:
  14. const Controller& controller;
  15. const Clock& fps;
  16. const Clock& tps;
  17. };
  18. #endif