Changeset 6142 in orxonox.OLD for trunk/src/world_entities/world_entity.cc
- Timestamp:
- Dec 16, 2005, 7:13:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.cc
r6005 r6142 53 53 54 54 this->setVisibiliy(true); 55 56 this->objectListNumber = OM_INIT; 57 this->objectListIterator = NULL; 58 59 this->toList(OM_NULL); 55 60 } 56 61 … … 67 72 for (unsigned int i = 0; i < this->models.size(); i++) 68 73 this->setModel(NULL, i); 74 75 State::getObjectManager()->toList(this, OM_INIT); 69 76 } 70 77 … … 95 102 { 96 103 if (fileName != NULL) 97 { 104 { 98 105 // search for the special character # in the LoadParam 99 106 if (strchr(fileName, '#') != NULL) 100 107 { 101 102 103 104 105 106 107 108 109 110 111 112 108 PRINTF(4)("Found # in %s... searching for LOD's\n", fileName); 109 char* lodFile = new char[strlen(fileName)+1]; 110 strcpy(lodFile, fileName); 111 char* depth = strchr(lodFile, '#'); 112 for (unsigned int i = 0; i < 5; i++) 113 { 114 *depth = 48+(int)i; 115 printf("-------%s\n", lodFile); 116 if (ResourceManager::isInDataDir(lodFile)) 117 this->loadModel(lodFile, scaling, i); 118 } 119 return; 113 120 } 114 121 … … 174 181 } 175 182 } 183 184 /** 185 * @brief moves this entity to the List OM_List 186 * @param list the list to set this Entity to. 187 * 188 * this is the same as a call to State::getObjectManager()->toList(entity , list); 189 * directly, but with an easier interface. 190 * 191 * @todo inline this (peut etre) 192 */ 193 void WorldEntity::toList(OM_LIST list) 194 { 195 State::getObjectManager()->toList(this, list); 196 } 197 176 198 177 199
Note: See TracChangeset
for help on using the changeset viewer.