Changeset 4436 in orxonox.OLD for orxonox/trunk/src/lib/particles
- Timestamp:
- Jun 1, 2005, 12:50:07 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/particles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/particles/particle_system.cc
r4434 r4436 85 85 if (this->material) 86 86 delete this->material; 87 }88 89 /**90 \brief sets the Name of the Particle System91 \param name the Name of the System92 */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 ParticleSystem103 */104 const char* ParticleSystem::getName(void) const105 {106 return this->name;107 87 } 108 88 -
orxonox/trunk/src/lib/particles/particle_system.h
r4434 r4436 68 68 PARTICLE_TYPE type = PARTICLE_DEFAULT_TYPE); 69 69 virtual ~ParticleSystem(); 70 void setName(const char* name);71 const char* getName(void) const;72 70 73 71 void setType(PARTICLE_TYPE particleType, int count = 0);
Note: See TracChangeset
for help on using the changeset viewer.