Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2005, 12:50:07 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: baseObject now implements loading of objectNames

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/particles/particle_system.cc

    r4434 r4436  
    8585   if (this->material)
    8686     delete this->material;
    87 }
    88 
    89 /**
    90    \brief sets the Name of the Particle System
    91    \param name the Name of the System
    92 */
    93 void ParticleSystem::setName(const char* name)
    94 {
    95   if (this->name)
    96     delete this->name;
    97   this->name = new char[strlen(name)+1];
    98   strcpy(this->name, name);
    99 }
    100 
    101 /**
    102    \returns the Name of the ParticleSystem
    103 */
    104 const char* ParticleSystem::getName(void) const
    105 {
    106   return this->name;
    10787}
    10888
Note: See TracChangeset for help on using the changeset viewer.