Game.h 529 B

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