Changeset 10228 in orxonox.OLD for branches/mount_points/src/world_entities
- Timestamp:
- Jan 10, 2007, 6:34:01 PM (18 years ago)
- Location:
- branches/mount_points/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/world_entities/world_entity.cc
r10216 r10228 276 276 void WorldEntity::loadMountPoints( Model* model, const std::string& fileName) 277 277 { 278 PRINTF(0)("loading the oif File: %s\n", fileName.c_str()); 278 PRINTF(4)("loading the oif File: %s\n", fileName.c_str()); 279 280 // now load the object information file 281 this->oiFile = new ObjectInformationFile(fileName); 279 282 280 283 // extract the mount points … … 291 294 // now get the number and add the mount point to the slot 292 295 std::string nrStr = (*it).name.substr(3, 2); 296 // add the mount point 293 297 this->addMountPoint(atoi(nrStr.c_str()), mp); 294 } 295 296 // now load the object information file297 this->oiFile = new ObjectInformationFile(fileName);298 299 // now fill the mount point 300 this->oiFile->initMountPoint(mp); 301 } 298 302 299 303 } … … 817 821 818 822 823 824 /** 825 * draw the mounting points 826 */ 827 void WorldEntity::debugDrawMountPoints() const 828 { 829 830 std::vector<MountPoint*>::const_iterator it = this->mountPoints.begin(); 831 for( ; it < this->mountPoints.end(); it++) 832 { 833 if( (*it) != NULL) 834 { 835 (*it)->debugDraw(); 836 } 837 } 838 } 839 840 819 841 /** 820 842 * Debug the WorldEntity -
branches/mount_points/src/world_entities/world_entity.h
r10202 r10228 73 73 virtual void tick (float time); 74 74 virtual void draw () const; 75 void debugDrawMountPoints() const; 75 76 76 77 /* --- Collision Detection Block --- */
Note: See TracChangeset
for help on using the changeset viewer.