Changeset 3944 in orxonox.OLD for orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.cc
- Timestamp:
- Apr 23, 2005, 2:48:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.cc
r3943 r3944 35 35 { 36 36 this->setClassName ("ParticleSystem"); 37 37 this->name = NULL; 38 38 this->maxCount = maxCount; 39 39 this->count = 0; … … 58 58 // delete what has to be deleted here 59 59 ParticleEngine::getInstance()->removeSystem(this); 60 } 61 62 void ParticleSystem::setName(const char* name) 63 { 64 if (this->name) 65 delete this->name; 66 this->name = new char[strlen(name)+1]; 67 strcpy(this->name, name); 68 } 69 70 const char* ParticleSystem::getName(void) const 71 { 72 return this->name; 60 73 } 61 74 … … 248 261 } 249 262 263 264 /** 265 \brief outputs some nice debug information 266 */ 267 void ParticleSystem::debug(void) 268 { 269 PRINT(0)(" ParticleSystem %s\n", this->name); 270 PRINT(0)(" ParticleCount: %d, maximumCount: %d :: filled %d%%\n", this->count, this->maxCount, 100*this->count/this->maxCount); 271 }
Note: See TracChangeset
for help on using the changeset viewer.