source: trunk/src/game.h @ 112

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

Make the Game class an asset like the others.

  • Property svn:keywords set to Id
File size: 622 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 "asset.h"
15
16class GameData;
17
18class Game : public Asset
19{
20public:
21    Game(char const *mapname);
22    ~Game();
23
24protected:
25    /* Inherited from Asset */
26    virtual Group GetGroup();
27    virtual void TickGame(float delta_time);
28    virtual void TickRender(float delta_time);
29
30public:
31    /* New methods */
32    void SetMouse(int x, int y);
33    void Quit();
34    int Finished();
35
36private:
37    GameData *data;
38};
39
40#endif // __DH_GAME_H__
41
Note: See TracBrowser for help on using the repository browser.