Changeset 5982 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Dec 8, 2005, 12:22:53 AM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign.cc
r5773 r5982 19 19 #include "campaign.h" 20 20 21 #include "factory.h" 21 22 #include "game_loader.h" 22 23 #include "story_entity.h" … … 90 91 { 91 92 PRINTF(5)("Campaign: Constructor: adding a world\n"); 92 StoryEntity* created = (StoryEntity*) GameLoader::getInstance()->fabricate(element);93 StoryEntity* created = (StoryEntity*) Factory::fabricate(element); 93 94 if( created != NULL) 94 95 { -
trunk/src/story_entities/world.cc
r5915 r5982 317 317 while( element != NULL) 318 318 { 319 BaseObject* created = ( loader->fabricate(element));319 BaseObject* created = (Factory::fabricate(element)); 320 320 if( created != NULL ) 321 321 { 322 322 if(created->isA(CL_WORLD_ENTITY)) 323 323 this->spawn(dynamic_cast<WorldEntity*>(created)); 324 printf("Created a %s: %s\n", created->getClassName(), created->getName());324 PRINTF(4)("Created a %s: %s\n", created->getClassName(), created->getName()); 325 325 } 326 326
Note: See TracChangeset
for help on using the changeset viewer.