~stratagus/stratagus/bos

« back to all changes in this revision

Viewing changes to bos/tags/boswars-2.7/engine/tolua/particle.pkg

  • Committer: feb
  • Date: 2014-02-09 12:03:34 UTC
  • Revision ID: svn-v4:34fe1b89-62eb-0310-b8fd-a8472fcdd8b9::10227
Create tag for boswars 2.7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
$#include "particle.h"
 
2
 
 
3
struct CPosition
 
4
{
 
5
        CPosition(int x, int y) : x(x), y(y) {}
 
6
        float x;
 
7
        float y;
 
8
};
 
9
 
 
10
class GraphicAnimation : public Animation
 
11
{
 
12
        GraphicAnimation(CGraphic *g, int ticksPerFrame);
 
13
        virtual Animation * clone();
 
14
};
 
15
 
 
16
class CParticle
 
17
{
 
18
        virtual CParticle* clone();
 
19
};
 
20
 
 
21
class StaticParticle : public CParticle
 
22
{
 
23
public:
 
24
        StaticParticle(CPosition position, Animation *animation);
 
25
};
 
26
 
 
27
class CChunkParticle : public CParticle
 
28
{
 
29
public:
 
30
        CChunkParticle(CPosition position, Animation *smokeAnimation);
 
31
};
 
32
 
 
33
class CSmokeParticle : public CParticle
 
34
{
 
35
};
 
36
 
 
37
class CParticleManager
 
38
{
 
39
public:
 
40
        CParticleManager();
 
41
        ~CParticleManager();
 
42
 
 
43
        void add(CParticle *particle);
 
44
};
 
45
 
 
46
extern CParticleManager ParticleManager;
 
47