source: trunk/src/ticker.h @ 170

Last change on this file since 170 was 170, checked in by sam, 11 years ago

Properly implement program termination, including in the GTK program.

  • Property svn:keywords set to Id
File size: 657 bytes
RevLine 
[100]1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
[94]5
[100]6//
7// The Ticker class
8// ----------------
[147]9// The Ticker is a static class that registers entities and ticks them.
[100]10//
[94]11
12#if !defined __DH_TICKER_H__
13#define __DH_TICKER_H__
14
15#include <stdint.h>
16
[147]17#include "entity.h"
[94]18
19class Ticker
20{
21public:
[147]22    static void Register(Entity *entity);
[170]23    static void Ref(Entity *entity);
24    static int Unref(Entity *entity);
[94]25
[116]26    static void TickGame();
[154]27    static void TickDraw();
[149]28    static void ClampFps(float deltams);
[167]29    static int GetFrameNum();
[170]30
31    static void Shutdown();
32    static int Finished();
[94]33};
34
35#endif // __DH_TICKER_H__
36
Note: See TracBrowser for help on using the repository browser.