Changeset 6619 in orxonox.OLD for trunk/src/lib/particles/particle_emitter.h
- Timestamp:
- Jan 19, 2006, 6:23:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/particle_emitter.h
r6512 r6619 21 21 22 22 //! The form of the Emitter to emit from 23 23 typedef enum EMITTER_TYPE 24 24 { 25 25 EMITTER_DOT = 1, … … 30 30 31 31 //! A class to handle an Emitter. 32 class ParticleEmitter : public PNode { 33 34 public: 32 class ParticleEmitter : public PNode 33 { 34 friend class ParticleSystem; 35 public: 35 36 ParticleEmitter(const Vector& direction, float angle = .5, 36 37 float emissionRate = 1.0, float velocity = 1.0); … … 46 47 void tick(float dt, ParticleSystem* system); 47 48 49 void setSystem(ParticleSystem* system); 50 ParticleSystem* getSystem() const { return this->system; }; 51 48 52 /* controlling the behavour: these can be used as Animation interfaces */ 49 53 void setType(EMITTER_TYPE type); … … 56 60 void setEmissionMomentum(float momentum, float randomMomentum = 0.0); 57 61 58 void setDirection(float x, float y, float z) { this->direction = Vector(x,y,z); }; //!< todo this should be done via PNODE 62 void setDirection(float x, float y, float z) { this->direction = Vector(x,y,z); } 63 ; //!< todo this should be done via PNODE 59 64 60 65 /** @returns the type of the emitter */ … … 77 82 void debug() const; 78 83 79 private: 84 85 private: 86 ParticleSystem* system; //!< The ParticleSystem this Emitter Emits into. 87 80 88 EMITTER_TYPE type; //!< The type of emitter this is. 81 89 float emitterSize; //!< The size of the emitter (not for EMITTER_DOT).
Note: See TracChangeset
for help on using the changeset viewer.