Last change
on this file since 6822 was
6822,
checked in by bensch, 18 years ago
|
trunk: ParticleEmitters now splitted into SubClasses.
Also fixed a little Boeg in the ClassID
|
File size:
792 bytes
|
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 | // Default values |
---|
12 | #define DOT_EMITTER_DEFAULT_SIZE 1.0 |
---|
13 | |
---|
14 | //! A class to handle an Emitter. |
---|
15 | class DotEmitter : public ParticleEmitter |
---|
16 | { |
---|
17 | friend class ParticleSystem; |
---|
18 | public: |
---|
19 | DotEmitter(const Vector& direction, float angle = .5, |
---|
20 | float emissionRate = 1.0, float velocity = 1.0); |
---|
21 | DotEmitter(const TiXmlElement* root); |
---|
22 | virtual ~DotEmitter(); |
---|
23 | |
---|
24 | |
---|
25 | /* controlling the emitter: interface */ |
---|
26 | void tick(float dt); |
---|
27 | |
---|
28 | virtual void emitParticles(unsigned int count) const; |
---|
29 | |
---|
30 | private: |
---|
31 | void init(); |
---|
32 | |
---|
33 | private: |
---|
34 | Vector emitterSize; //!< The size of the emitter (not for EMITTER_DOT). |
---|
35 | |
---|
36 | }; |
---|
37 | |
---|
38 | #endif /* _DOT_EMITTER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.