source: trunk/monsterz/game.h @ 312

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

Create the WorldEntity class, for objects with world coordinates.

  • Property svn:keywords set to Id
File size: 843 bytes
Line 
1//
2// Monsterz
3//
4// Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
10
11//
12// The Game class
13// --------------
14//
15
16#if !defined __MONSTERZ_GAME_H__
17#define __MONSTERZ_GAME_H__
18
19#include "entity.h"
20
21class GameData;
22
23class Game : public Entity
24{
25public:
26    Game();
27    ~Game();
28
29protected:
30    /* Inherited from Entity */
31    virtual void TickGame(float deltams);
32    virtual void TickDraw(float deltams);
33
34public:
35    /* New methods */
36    void SetMouse(int x, int y);
37    void Quit();
38    int Finished();
39
40private:
41    GameData *data;
42};
43
44#endif // __MONSTERZ_GAME_H__
45
Note: See TracBrowser for help on using the repository browser.