Last change
on this file since 1310 was
1310,
checked in by sam, 9 years ago
|
core: tick methods now use seconds, like any sane system.
|
-
Property svn:keywords set to
Id
|
File size:
592 bytes
|
Line | |
---|
1 | // |
---|
2 | // Deus Hax (working title) |
---|
3 | // Copyright (c) 2010-2012 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 | |
---|
16 | class GameData; |
---|
17 | |
---|
18 | class Game : public Entity |
---|
19 | { |
---|
20 | public: |
---|
21 | Game(char const *mapname); |
---|
22 | ~Game(); |
---|
23 | |
---|
24 | protected: |
---|
25 | /* Inherited from Entity */ |
---|
26 | virtual void TickGame(float seconds); |
---|
27 | virtual void TickDraw(float seconds); |
---|
28 | |
---|
29 | public: |
---|
30 | /* New methods */ |
---|
31 | void SetMouse(int x, int y); |
---|
32 | void Quit(); |
---|
33 | int Finished(); |
---|
34 | |
---|
35 | private: |
---|
36 | GameData *data; |
---|
37 | }; |
---|
38 | |
---|
39 | #endif // __DH_GAME_H__ |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.