Changeset 9406 in orxonox.OLD for trunk/src/lib/particles
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- Location:
- trunk/src/lib/particles
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/box_emitter.cc
r7198 r9406 25 25 #include "stdlibincl.h" 26 26 27 using namespace std; 27 28 28 29 29 -
trunk/src/lib/particles/dot_emitter.cc
r7661 r9406 24 24 #include "debug.h" 25 25 26 using namespace std; 26 27 27 28 28 -
trunk/src/lib/particles/dot_particles.cc
r7198 r9406 33 33 ->defaultValues("maps/evil-flower.png"); 34 34 35 using namespace std; 35 36 36 37 37 /** -
trunk/src/lib/particles/engine/particle_engine.cc
r7225 r9406 24 24 #include "util/loading/load_param.h" 25 25 26 using namespace std; 26 27 27 28 28 /** -
trunk/src/lib/particles/model_particles.cc
r7221 r9406 33 33 ->defaultValues("maps/evil-flower.png"); 34 34 35 using namespace std; 35 36 36 37 37 /** … … 136 136 } 137 137 else 138 PRINTF(2)("no model loaded onto ParticleSystem-%s\n", this->get Name());138 PRINTF(2)("no model loaded onto ParticleSystem-%s\n", this->getCName()); 139 139 glPopAttrib(); 140 140 } -
trunk/src/lib/particles/particle_emitter.cc
r7193 r9406 24 24 #include "stdlibincl.h" 25 25 26 using namespace std; 26 27 27 28 28 /** … … 198 198 void ParticleEmitter::debug() const 199 199 { 200 PRINT(0)(" ParticleEmitter %s::%s\n", this->getClass Name(), this->getName());200 PRINT(0)(" ParticleEmitter %s::%s\n", this->getClassCName(), this->getCName()); 201 201 PRINT(0)(" EmissionRate: %f, Speed: %f, SpreadAngle: %f\n", this->getEmissionRate(), this->getEmissionVelocity(), this->getSpread()); 202 202 } -
trunk/src/lib/particles/particle_system.cc
r9235 r9406 32 32 #include <algorithm> 33 33 34 using namespace std; 34 35 35 /** 36 36 * standard constructor … … 139 139 { 140 140 PRINTF(2)("Tried to load an Element of type '%s' that should be a ParticleEmitter onto '%s::%s'.\n", 141 emitter->getClass Name(), this->getClassName(), this->getName());141 emitter->getClassCName(), this->getClassCName(), this->getCName()); 142 142 delete emitter; 143 143 } … … 145 145 else 146 146 { 147 PRINTF(2)("Could not Generate Emitter for system %s::%s (wrong type in XML-format)\n", this->getClass Name(), getName());147 PRINTF(2)("Could not Generate Emitter for system %s::%s (wrong type in XML-format)\n", this->getClassCName(), getCName()); 148 148 } 149 149 } … … 157 157 { 158 158 this->maxCount = maxCount; 159 PRINTF(4)("MAXCOUNT of %s::%s is %d\n", this->getClass Name(), this->getName(),maxCount);159 PRINTF(4)("MAXCOUNT of %s::%s is %d\n", this->getClassCName(), this->getCName(), maxCount); 160 160 } 161 161 … … 170 170 this->lifeSpan = lifeSpan; 171 171 this->randomLifeSpan = randomLifeSpan; 172 PRINTF(4)("LifeTime of %s::%s is %f\n", this->getClass Name(), this->getName(), lifeSpan);172 PRINTF(4)("LifeTime of %s::%s is %f\n", this->getClassCName(), this->getCName(), lifeSpan); 173 173 } 174 174 … … 188 188 this->conserve = conserve; 189 189 190 PRINTF(4)("Conserve of %s::%s is %f\n", this->getClass Name(), this->getName(),conserve);190 PRINTF(4)("Conserve of %s::%s is %f\n", this->getClassCName(), this->getCName(), conserve); 191 191 } 192 192 … … 206 206 207 207 PRINTF(4)("Radius of %s::%s at timeSlice %f is %f with a Random of %f\n", 208 this->getClass Name(), this->getName(),lifeCycleTime, radius, randRadius);208 this->getClassCName(), this->getCName(), lifeCycleTime, radius, randRadius); 209 209 } 210 210 … … 237 237 238 238 PRINTF(4)("Color of %s::%s on timeslice %f is r:%f g:%f b:%f a:%f\n", 239 this->getClass Name(), this->getName(), lifeCycleTime, red, green, blue, alpha);239 this->getClassCName(), this->getCName(), lifeCycleTime, red, green, blue, alpha); 240 240 } 241 241 … … 278 278 (*emitter)->updateNode(.1), (*emitter)->updateNode(.1); 279 279 280 PRINTF(4)("Precaching %s::%s %d seconds %d timesPerSecond\n", this->getClass Name(), this->getName(), seconds, ticksPerSecond);280 PRINTF(4)("Precaching %s::%s %d seconds %d timesPerSecond\n", this->getClassCName(), this->getCName(), seconds, ticksPerSecond); 281 281 for (unsigned int i = 0; i < seconds*ticksPerSecond; i++) 282 282 this->tick(1.0/(float)ticksPerSecond); … … 460 460 int i = 1; 461 461 Particle* tmpPart = this->deadList; 462 while ( tmpPart = tmpPart->next) { ++i; }462 while ((tmpPart = tmpPart->next) != NULL) { ++i; } 463 463 PRINT(0)("count: %d\n", i); 464 464 } -
trunk/src/lib/particles/plane_emitter.cc
r7198 r9406 25 25 #include "stdlibincl.h" 26 26 27 using namespace std; 27 28 28 29 29 -
trunk/src/lib/particles/quick_animation.cc
r7335 r9406 20 20 #include <algorithm> 21 21 22 using namespace std; 22 23 23 24 24 /** -
trunk/src/lib/particles/spark_particles.cc
r7221 r9406 29 29 30 30 31 using namespace std; 31 32 32 33 33 CREATE_FACTORY(SparkParticles, CL_SPARK_PARTICLES); -
trunk/src/lib/particles/sprite_particles.cc
r7221 r9406 33 33 ->defaultValues("maps/evil-flower.png"); 34 34 35 using namespace std; 35 36 36 37 37 /**
Note: See TracChangeset
for help on using the changeset viewer.