Changeset 10313 in orxonox.OLD for branches/mount_points/src/world_entities/world_entity.cc
- Timestamp:
- Jan 24, 2007, 12:18:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/world_entities/world_entity.cc
r10312 r10313 145 145 .defaultValues("", 1.0f, 0); 146 146 147 LoadParam(root, "mountpoints", this, WorldEntity, loadMountPoints) 148 .describe("the fileName of the object information file (optional)"); 149 147 150 LoadParam(root, "maxHealth", this, WorldEntity, setHealthMax) 148 151 .describe("The Maximum health that can be loaded onto this entity") … … 216 219 { 217 220 this->buildObbTree(obbTreeDepth); 218 219 // now get the object information file for this model, if any220 std::string oifName = fileName.substr(0, fileName.length() - 4) + ".oif";221 this->loadMountPoints( model, oifName);222 221 } 223 222 } … … 277 276 * @param fileName the name of the file 278 277 */ 279 void WorldEntity::loadMountPoints( Model* model,const std::string& fileName)278 void WorldEntity::loadMountPoints(const std::string& fileName) 280 279 { 281 280 PRINTF(5)("loading the oif File: %s\n", fileName.c_str()); … … 283 282 // now load the object information file 284 283 this->oiFile = new ObjectInformationFile(fileName); 284 285 // get the model to load 286 Model* model = this->getModel(); 285 287 286 288 // extract the mount points
Note: See TracChangeset
for help on using the changeset viewer.