Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2005, 2:48:57 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: debug function-headers written

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.cc

    r3943 r3944  
    3535{
    3636   this->setClassName ("ParticleSystem");
    37 
     37   this->name = NULL;
    3838   this->maxCount = maxCount;
    3939   this->count = 0;
     
    5858  // delete what has to be deleted here
    5959   ParticleEngine::getInstance()->removeSystem(this);
     60}
     61
     62void 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
     70const char* ParticleSystem::getName(void) const
     71{
     72  return this->name;
    6073}
    6174
     
    248261}
    249262
     263
     264/**
     265   \brief outputs some nice debug information
     266*/
     267void 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.