source:
orxonox.OLD/trunk/src/world_entities/particles/dot_emitter.h
| Last change on this file was 9869, checked in by bensch, 19 years ago | |
|---|---|
| File size: 566 bytes | |
| Rev | Line | |
|---|---|---|
| [4597] | 1 | /*! |
| [6822] | 2 | * @file dot_emitter.h |
| 3 | * Definition of a DotEmitter | |
| 4 | */ | |
| [3926] | 5 | |
| [6822] | 6 | #ifndef _DOT_EMITTER_H |
| 7 | #define _DOT_EMITTER_H | |
| [3926] | 8 | |
| [6822] | 9 | #include "particle_emitter.h" |
| [3926] | 10 | |
| [4381] | 11 | //! A class to handle an Emitter. |
| [6822] | 12 | class DotEmitter : public ParticleEmitter |
| [6619] | 13 | { |
| [9715] | 14 | ObjectListDeclaration(DotEmitter); |
| [9686] | 15 | |
| [6619] | 16 | friend class ParticleSystem; |
| 17 | public: | |
| [6825] | 18 | DotEmitter(float emissionRate = 1.0, float velocity = 1.0, float angle = .5); |
| [6822] | 19 | DotEmitter(const TiXmlElement* root); |
| 20 | virtual ~DotEmitter(); | |
| [4597] | 21 | |
| [6825] | 22 | protected: |
| [6822] | 23 | virtual void emitParticles(unsigned int count) const; |
| [6619] | 24 | |
| [6822] | 25 | private: |
| 26 | void init(); | |
| [3926] | 27 | }; |
| 28 | ||
| [6822] | 29 | #endif /* _DOT_EMITTER_H */ |
Note: See TracBrowser
for help on using the repository browser.










