Last change
on this file since 264 was
264,
checked in by sam, 12 years ago
|
Start implementing mash lifetime.
|
File size:
586 bytes
|
Line | |
---|
1 | // |
---|
2 | // Deus Hax (working title) |
---|
3 | // Copyright (c) 2010-2011 Sam Hocevar <sam@hocevar.net> |
---|
4 | // |
---|
5 | |
---|
6 | // |
---|
7 | // The Mash class |
---|
8 | // -------------- |
---|
9 | // |
---|
10 | |
---|
11 | #if !defined __DH_MASH_H__ |
---|
12 | #define __DH_MASH_H__ |
---|
13 | |
---|
14 | #include "entity.h" |
---|
15 | #include "game.h" |
---|
16 | #include "piece.h" |
---|
17 | |
---|
18 | class MashData; |
---|
19 | |
---|
20 | class Mash : public Entity |
---|
21 | { |
---|
22 | public: |
---|
23 | Mash(Game *game); |
---|
24 | virtual ~Mash(); |
---|
25 | |
---|
26 | void AddPiece(Piece *piece); |
---|
27 | int IsFinished() const; |
---|
28 | |
---|
29 | protected: |
---|
30 | virtual void TickGame(float deltams); |
---|
31 | virtual void TickDraw(float deltams); |
---|
32 | |
---|
33 | private: |
---|
34 | MashData *data; |
---|
35 | |
---|
36 | public: |
---|
37 | Mash *nextmash; |
---|
38 | }; |
---|
39 | |
---|
40 | #endif // __DH_MASH_H__ |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.