Line | |
---|
1 | /*! |
---|
2 | * @file dot_emitter.h |
---|
3 | * Definition of a DotEmitter |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _DOT_EMITTER_H |
---|
7 | #define _DOT_EMITTER_H |
---|
8 | |
---|
9 | #include "particle_emitter.h" |
---|
10 | |
---|
11 | //! A class to handle an Emitter. |
---|
12 | class DotEmitter : public ParticleEmitter |
---|
13 | { |
---|
14 | ObjectListDeclaration(DotEmitter); |
---|
15 | |
---|
16 | friend class ParticleSystem; |
---|
17 | public: |
---|
18 | DotEmitter(float emissionRate = 1.0, float velocity = 1.0, float angle = .5); |
---|
19 | DotEmitter(const TiXmlElement* root); |
---|
20 | virtual ~DotEmitter(); |
---|
21 | |
---|
22 | protected: |
---|
23 | virtual void emitParticles(unsigned int count) const; |
---|
24 | |
---|
25 | private: |
---|
26 | void init(); |
---|
27 | }; |
---|
28 | |
---|
29 | #endif /* _DOT_EMITTER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.