source: trunk/monsterz/mash.h @ 350

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

Create the WorldEntity class, for objects with world coordinates.

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