Debian Codegraph @

Oodle/src/CExplodeEffect.h

raw
1 #ifndef _CEXPLODEEFFECT_
2 #define _CEXPLODEEFFECT_
3
4 #include <list>
5 using namespace std;
6
7 class CExplodeEffect : public CEffect
8 {
9 public:
10 virtual ~CExplodeEffect();
11 virtual CExplodeEffect* getCopy() = 0;
12
13 virtual void initialize() = 0;
14
15 virtual void doUpdate() = 0;
16 bool hasDraw() { return true; }
17
18 void draw(CSurface &s, int x, int y);
19
20 protected:
21 CExplodeEffect(CSprite &s, int duration, double minVel, double randVel, const CRect &r, bool concurrent);
22
23 unsigned int duration;
24 int gone, numPieces;
25 double minVel, randVel;
26
27 CRect r;
28 CSprite &s;
29 list<CParticle*> pieces;
30 };
31
32 #endif