Changeset 10202 in orxonox.OLD for branches/mount_points/src/world_entities/world_entity.cc
- Timestamp:
- Jan 10, 2007, 11:41:08 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/world_entities/world_entity.cc
r10201 r10202 209 209 { 210 210 this->setModel(model, modelNumber); 211 PRINTF(0)("model number: %i\n", modelNumber);212 211 213 212 if( modelNumber == 0) … … 217 216 // now get the object information file for this model, if any 218 217 std::string oifName = fileName.substr(0, fileName.length() - 4) + ".oif"; 219 this->loadMountPoints( oifName);218 this->loadMountPoints( model, oifName); 220 219 } 221 220 } … … 275 274 * @param fileName the name of the file 276 275 */ 277 void WorldEntity::loadMountPoints( const std::string& fileName)276 void WorldEntity::loadMountPoints( Model* model, const std::string& fileName) 278 277 { 279 278 PRINTF(0)("loading the oif File: %s\n", fileName.c_str()); … … 281 280 282 281 // first get all mount points from the model 283 std::list<mountPointSkeleton> mpList = this->getModel()->getMountPoints();282 const std::list<mountPointSkeleton> mpList = model->getMountPoints(); 284 283 // for each skeleton create a mounting point world entity 285 284 std::list<mountPointSkeleton>::const_iterator it = mpList.begin(); 286 285 287 PRINTF(0)("->>>> size: %i\n", mpList.size());288 289 286 for( ; it != mpList.end(); it++) 290 287 { 291 288 MountPoint* mp = new MountPoint( (*it).up, (*it).forward, (*it).center, (*it).name); 292 289 293 std::string nrStr = (*it).name.substr( 1, 2);290 std::string nrStr = (*it).name.substr(3, 2); 294 291 295 292 PRINTF(0)("got mp nr: %s\n", nrStr.c_str());
Note: See TracChangeset
for help on using the changeset viewer.