source: trunk/src/game.h @ 147

Last change on this file since 147 was 147, checked in by sam, 12 years ago

Rename "asset" to "entity". It's way cooler.

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