source: trunk/src/game.h @ 106

Last change on this file since 106 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
RevLine 
[100]1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
[79]5
[100]6//
7// The Game class
8// --------------
9//
[79]10
11#if !defined __DH_GAME_H__
12#define __DH_GAME_H__
13
[106]14#include "asset.h"
15
[79]16class GameData;
17
[106]18class Game : public Asset
[79]19{
20public:
21    Game(char const *mapname);
22    ~Game();
23
[106]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 */
[79]32    void SetMouse(int x, int y);
[102]33    void Quit();
34    int Finished();
[79]35
36private:
37    GameData *data;
38};
39
40#endif // __DH_GAME_H__
41
Note: See TracBrowser for help on using the repository browser.