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.
|
File size:
840 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 Mash class |
---|
13 | // -------------- |
---|
14 | // |
---|
15 | |
---|
16 | #if !defined __MONSTERZ_MASH_H__ |
---|
17 | #define __MONSTERZ_MASH_H__ |
---|
18 | |
---|
19 | #include "entity.h" |
---|
20 | #include "piece.h" |
---|
21 | |
---|
22 | class MashData; |
---|
23 | |
---|
24 | class Mash : public Entity |
---|
25 | { |
---|
26 | public: |
---|
27 | Mash(Emitter *emitter); |
---|
28 | virtual ~Mash(); |
---|
29 | |
---|
30 | void AddPiece(Piece *piece); |
---|
31 | int IsDead() const; |
---|
32 | |
---|
33 | protected: |
---|
34 | virtual void TickGame(float deltams); |
---|
35 | virtual void TickDraw(float deltams); |
---|
36 | |
---|
37 | private: |
---|
38 | MashData *data; |
---|
39 | |
---|
40 | public: |
---|
41 | Mash *nextmash; |
---|
42 | }; |
---|
43 | |
---|
44 | #endif // __MONSTERZ_MASH_H__ |
---|
45 | |
---|
Note: See
TracBrowser
for help on using the repository browser.