Game.h 424 B

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