Game.h 553 B

123456789101112131415161718192021222324252627282930
  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. #include "utils/Size.h"
  9. class Game final {
  10. const Controller& controller;
  11. const Clock& fps;
  12. const Clock& tps;
  13. const Size& size;
  14. bool physicsToggle;
  15. Entity player;
  16. public:
  17. Game(Controller& c, const Clock& fps, const Clock& tps, const Size& size);
  18. void tick();
  19. void render(float lag, Renderer& renderer) const;
  20. bool isRunning() const;
  21. };
  22. #endif