source: trunk/monsterz/mash.h @ 312

Last change on this file since 312 was 312, checked in by sam, 9 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
22class MashData;
23
24class Mash : public Entity
25{
26public:
27    Mash(Emitter *emitter);
28    virtual ~Mash();
29
30    void AddPiece(Piece *piece);
31    int IsDead() const;
32
33protected:
34    virtual void TickGame(float deltams);
35    virtual void TickDraw(float deltams);
36
37private:
38    MashData *data;
39
40public:
41    Mash *nextmash;
42};
43
44#endif // __MONSTERZ_MASH_H__
45
Note: See TracBrowser for help on using the repository browser.