Changeset 3530 in orxonox.OLD for orxonox/branches/levelloader/src/factory.cc
- Timestamp:
- Mar 13, 2005, 10:40:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/factory.cc
r3525 r3530 18 18 19 19 #include "factory.h" 20 #include "game_loader.h" 20 21 21 22 using namespace std; … … 33 34 Factory::Factory () 34 35 { 35 classname = "NULL" 36 classname = "NULL"; 36 37 next = NULL; 37 38 } 38 39 39 40 /** 40 \brief constructor41 \brief destructor 41 42 42 43 clear the Q … … 51 52 \brief generates the associated object from data 52 53 */ 53 BaseObject* ObjectFactory::fabricate( TiXmlElement* data)54 BaseObject* Factory::fabricate( TiXmlElement* data) 54 55 { 55 56 return NULL; … … 61 62 void Factory::initialize() 62 63 { 64 assert( classname != NULL); 65 PRINTF(3)("Initializing %sFactory\n", classname); 63 66 GameLoader* gl = GameLoader::getInstance(); 64 67 gl->registerFactory( this); … … 88 91 while( node != NULL) 89 92 { 90 if( node->T ype() == TEXT) return node->Value();91 node = node->Next Child();93 if( node->ToText()) return node->Value(); 94 node = node->NextSibling(); 92 95 } 93 96 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.