Ejemplo n.º 1
0
 const Type* PropertyImpl::getSubstitutionType(unsigned int index) const 
 {
     if (index < getSubstitutionCount())
     {
         return (substitutions[index].type);
     }
     return 0;
 }
Ejemplo n.º 2
0
 const char * PropertyImpl::getSubstitutionName(unsigned int index) const 
 {
     if (index < getSubstitutionCount())
     {
         return (substitutions[index].name.c_str());
     }
     SDO_THROW_EXCEPTION("getSubstitutionName", SDOIndexOutOfRangeException,
         "index out of range");
 }
Ejemplo n.º 3
0
DebrisData* DebrisData::cloneAndPerformSubstitutions(const SimObject* owner, S32 index)
{
   if (!owner || getSubstitutionCount() == 0)
      return this;

   DebrisData* sub_debris_db = new DebrisData(*this, true);
   performSubstitutions(sub_debris_db, owner, index);

   return sub_debris_db;
}