Changeset 4114 in orxonox.OLD for orxonox/trunk/src/game_loader.cc
- Timestamp:
- May 7, 2005, 10:02:57 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/game_loader.cc
r4113 r4114 290 290 assert( factory != NULL); 291 291 292 PRINTF 0("Registered factory for '%s'\n", factory->getFactoryName());292 PRINTF(4)("Registered factory for '%s'\n", factory->getFactoryName()); 293 293 294 294 if( first == NULL) first = factory; … … 302 302 BaseObject* GameLoader::fabricate( TiXmlElement* element) 303 303 { 304 assert( element != NULL); 305 306 if( first == NULL) 307 { 308 PRINTF0("GameLoader does not know any factories, fabricate() failed\n"); 309 return NULL; 310 } 311 312 if( element->Value() != NULL) 313 { 314 PRINTF0("Attempting fabrication of a '%s'\n", element->Value()); 315 BaseObject* b = first->fabricate( element); 316 if( b == NULL) PRINTF0("Failed to fabricate a '%s'\n", element->Value()); 317 else PRINTF0("Successfully fabricated a '%s'\n", element->Value()); 318 return b; 319 } 320 321 PRINTF0("Fabricate failed, TiXmlElement did not contain a value\n"); 322 323 return NULL; 324 } 304 assert( element != NULL); 305 306 if( first == NULL) 307 { 308 PRINTF(1)("GameLoader does not know any factories, fabricate() failed\n"); 309 return NULL; 310 } 311 312 if( element->Value() != NULL) 313 { 314 PRINTF(4)("Attempting fabrication of a '%s'\n", element->Value()); 315 BaseObject* b = first->fabricate( element); 316 if( b == NULL) 317 PRINTF(2)("Failed to fabricate a '%s'\n", element->Value()); 318 else 319 PRINTF(4)("Successfully fabricated a '%s'\n", element->Value()); 320 return b; 321 } 322 323 PRINTF(2)("Fabricate failed, TiXmlElement did not contain a value\n"); 324 325 return NULL; 326 }
Note: See TracChangeset
for help on using the changeset viewer.