Changeset 4746 in orxonox.OLD for orxonox/trunk/src/lib/particles
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/particles
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_emitter.cc
r4726 r4746 159 159 } 160 160 161 const char* ParticleEmitter::getTypeC( void) const161 const char* ParticleEmitter::getTypeC() const 162 162 { 163 163 if (this->type == EMITTER_PLANE) … … 310 310 \brief outputs some nice debug information 311 311 */ 312 void ParticleEmitter::debug( void) const312 void ParticleEmitter::debug() const 313 313 { 314 314 PRINT(0)(" Emitter %s\n", this->getName()); -
orxonox/trunk/src/lib/particles/particle_emitter.h
r4726 r4746 36 36 float emissionRate = 1.0, float velocity = 1.0); 37 37 ParticleEmitter(const TiXmlElement* root); 38 virtual ~ParticleEmitter( void);38 virtual ~ParticleEmitter(); 39 39 40 40 void init(); … … 59 59 60 60 /** \returns the type of the emitter */ 61 inline EMITTER_TYPE getType( void) const { return this->type; };61 inline EMITTER_TYPE getType() const { return this->type; }; 62 62 /** \returns the Type as a const char * */ 63 const char* getTypeC( void) const;63 const char* getTypeC() const; 64 64 /** \returns the Size of the emitter */ 65 inline float getSize( void) const { return this->emitterSize; };65 inline float getSize() const { return this->emitterSize; }; 66 66 /** \returns the emissionRate */ 67 inline float getEmissionRate( void) const { return this->emissionRate; };67 inline float getEmissionRate() const { return this->emissionRate; }; 68 68 /** \returns the inherit-speed-factor */ 69 inline float getInheritSpeed( void) const { return this->inheritSpeed; };69 inline float getInheritSpeed() const { return this->inheritSpeed; }; 70 70 /** \returns the SpreadAngle of the emitter */ 71 inline float getSpread( void) const { return this->angle; };71 inline float getSpread() const { return this->angle; }; 72 72 /** \returns the EmissionVelocity of the emitter */ 73 inline float getEmissionVelocity( void) const { return this->velocity; };73 inline float getEmissionVelocity() const { return this->velocity; }; 74 74 /** \returns the EmissionMomentum of this emitter */ 75 inline float getEmissionMomentum( void) const { return this->momentum; };75 inline float getEmissionMomentum() const { return this->momentum; }; 76 76 77 void debug( void) const;77 void debug() const; 78 78 79 79 private: -
orxonox/trunk/src/lib/particles/particle_engine.cc
r4726 r4746 389 389 \brief outputs some nice debug information 390 390 */ 391 void ParticleEngine::debug( void)391 void ParticleEngine::debug() 392 392 { 393 393 PRINT(0)("+-----------------------------------+\n"); -
orxonox/trunk/src/lib/particles/particle_engine.h
r4726 r4746 33 33 34 34 public: 35 virtual ~ParticleEngine( void);35 virtual ~ParticleEngine(); 36 36 /** \returns a Pointer to the only object of this Class */ 37 inline static ParticleEngine* getInstance( void) { if (!singletonRef) singletonRef = new ParticleEngine(); return singletonRef; };37 inline static ParticleEngine* getInstance() { if (!singletonRef) singletonRef = new ParticleEngine(); return singletonRef; }; 38 38 39 39 void loadParams(const TiXmlElement* root); 40 40 41 41 void tick(float dt); 42 void draw( void) const;42 void draw() const; 43 43 44 44 void addSystem(ParticleSystem* system); … … 61 61 62 62 private: 63 ParticleEngine( void);63 ParticleEngine(); 64 64 static ParticleEngine* singletonRef; //!< The reference to the engine. 65 65 -
orxonox/trunk/src/lib/particles/particle_system.cc
r4732 r4746 89 89 \brief initializes the ParticleSystem with default values 90 90 */ 91 void ParticleSystem::init( void)91 void ParticleSystem::init() 92 92 { 93 93 this->setClassID(CL_PARTICLE_SYSTEM, "ParticleSystem"); … … 367 367 * \returns the count of Faces of this ParticleSystem 368 368 */ 369 unsigned int ParticleSystem::getFaceCount( void) const369 unsigned int ParticleSystem::getFaceCount() const 370 370 { 371 371 switch (this->particleType) … … 389 389 This is just the fastest Way to do this, but will most likely be changed in the future. 390 390 */ 391 void ParticleSystem::draw( void) const391 void ParticleSystem::draw() const 392 392 { 393 393 glPushAttrib(GL_ENABLE_BIT); … … 581 581 \brief outputs some nice debug information 582 582 */ 583 void ParticleSystem::debug( void) const583 void ParticleSystem::debug() const 584 584 { 585 585 PRINT(0)(" ParticleSystem %s, type: ", this->getName()); -
orxonox/trunk/src/lib/particles/particle_system.h
r4727 r4746 73 73 virtual ~ParticleSystem(); 74 74 75 void init( void);75 void init(); 76 76 void loadParams(const TiXmlElement* root); 77 77 … … 90 90 91 91 /** \returns the Type of the particles */ 92 inline PARTICLE_TYPE getType( void) const { return this->particleType; };92 inline PARTICLE_TYPE getType() const { return this->particleType; }; 93 93 /** \returns the Material that lies on this particles */ 94 inline const Material* getMaterial( void) const { return this->material; };94 inline const Material* getMaterial() const { return this->material; }; 95 95 /** \returns the lifespan of the particles */ 96 inline float getLifeSpan( void) const { return this->lifeSpan; };96 inline float getLifeSpan() const { return this->lifeSpan; }; 97 97 /** \returns the starting-radius of the particles */ 98 inline float getStartRadius( void) { return this->radiusAnim.getValue(0.0); };98 inline float getStartRadius() { return this->radiusAnim.getValue(0.0); }; 99 99 /** \returns the end-radius of the particles */ 100 inline float getEndRadius( void) { return this->radiusAnim.getValue(1.0); };100 inline float getEndRadius() { return this->radiusAnim.getValue(1.0); }; 101 101 /** \returns the conserve-factor of the particles */ 102 inline float getConserve( void) const { return this->conserve; };102 inline float getConserve() const { return this->conserve; }; 103 103 /** \returns the initial mass of the particles */ 104 inline float getMass( void) const { return this->initialMass; };104 inline float getMass() const { return this->initialMass; }; 105 105 106 virtual unsigned int getFaceCount( void) const;106 virtual unsigned int getFaceCount() const; 107 107 108 108 … … 114 114 115 115 virtual void tick(float dt); 116 virtual void draw( void) const;116 virtual void draw() const; 117 117 118 void debug( void) const;118 void debug() const; 119 119 120 120 private: -
orxonox/trunk/src/lib/particles/quick_animation.cc
r4657 r4746 30 30 \brief standard constructor 31 31 */ 32 QuickAnimation::QuickAnimation ( void)32 QuickAnimation::QuickAnimation () 33 33 { 34 34 this->setClassID(CL_QUICK_ANIMATION, "QuickAnimation"); … … 45 45 \brief deletes all the deconstructor stuff 46 46 */ 47 QuickAnimation::~QuickAnimation ( void)47 QuickAnimation::~QuickAnimation () 48 48 { 49 49 this->current = this->first; … … 228 228 \brief outputs some nice information about this class 229 229 */ 230 void QuickAnimation::debug( void)230 void QuickAnimation::debug() 231 231 { 232 232 this->current = this->first; -
orxonox/trunk/src/lib/particles/quick_animation.h
r4657 r4746 49 49 float getValue(float position); 50 50 51 void debug( void);51 void debug(); 52 52 53 53 private:
Note: See TracChangeset
for help on using the changeset viewer.