source: trunk/src/game.h @ 210

Last change on this file since 210 was 210, checked in by sam, 10 years ago

Allow for different priorities in game and draw tick levels.

  • Property svn:keywords set to Id
File size: 629 bytes
Line 
1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
5
6//
7// The Game class
8// --------------
9//
10
11#if !defined __DH_GAME_H__
12#define __DH_GAME_H__
13
14#include "entity.h"
15#include "scene.h"
16
17class GameData;
18
19class Game : public Entity
20{
21public:
22    Game(char const *mapname);
23    ~Game();
24
25protected:
26    /* Inherited from Entity */
27    virtual void TickGame(float deltams);
28    virtual void TickDraw(float deltams);
29
30public:
31    /* New methods */
32    Scene *GetScene();
33    void SetMouse(int x, int y);
34    void Quit();
35    int Finished();
36
37private:
38    GameData *data;
39};
40
41#endif // __DH_GAME_H__
42
Note: See TracBrowser for help on using the repository browser.