Game.h 406 B

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