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.

42 lines
916 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://sam.zoy.org/projects/COPYING.WTFPL for more details.
  9. //
  10. //
  11. // The Ticker class
  12. // ----------------
  13. // The Ticker is a static class that registers entities and ticks them.
  14. //
  15. #if !defined __DH_TICKER_H__
  16. #define __DH_TICKER_H__
  17. #include <stdint.h>
  18. #include "entity.h"
  19. class Ticker
  20. {
  21. public:
  22. static void Register(Entity *entity);
  23. static void Ref(Entity *entity);
  24. static int Unref(Entity *entity);
  25. static void TickGame();
  26. static void TickDraw();
  27. static void ClampFps(float deltams);
  28. static int GetFrameNum();
  29. static void Shutdown();
  30. static int Finished();
  31. };
  32. #endif // __DH_TICKER_H__