You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 rivejä
657 B

  1. //
  2. // Deus Hax (working title)
  3. // Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
  4. //
  5. //
  6. // The Ticker class
  7. // ----------------
  8. // The Ticker is a static class that registers entities and ticks them.
  9. //
  10. #if !defined __DH_TICKER_H__
  11. #define __DH_TICKER_H__
  12. #include <stdint.h>
  13. #include "entity.h"
  14. class Ticker
  15. {
  16. public:
  17. static void Register(Entity *entity);
  18. static void Ref(Entity *entity);
  19. static int Unref(Entity *entity);
  20. static void TickGame();
  21. static void TickDraw();
  22. static void ClampFps(float deltams);
  23. static int GetFrameNum();
  24. static void Shutdown();
  25. static int Finished();
  26. };
  27. #endif // __DH_TICKER_H__