Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3530 in orxonox.OLD for orxonox/branches/levelloader/src/factory.cc


Ignore:
Timestamp:
Mar 13, 2005, 10:40:25 PM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Got the system to compile, the basic backbone now runs. What remains to be done is implementing all necessary functions to load all vital classes into a world

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/factory.cc

    r3525 r3530  
    1818
    1919#include "factory.h"
     20#include "game_loader.h"
    2021
    2122using namespace std;
     
    3334Factory::Factory ()
    3435{
    35         classname = "NULL"
     36        classname = "NULL";
    3637        next = NULL;
    3738}
    3839
    3940/**
    40    \brief constructor
     41   \brief destructor
    4142   
    4243   clear the Q
     
    5152   \brief generates the associated object from data
    5253*/
    53 BaseObject* ObjectFactory::fabricate( TiXmlElement* data)
     54BaseObject* Factory::fabricate( TiXmlElement* data)
    5455{
    5556        return NULL;
     
    6162void Factory::initialize()
    6263{
     64        assert( classname != NULL);
     65        PRINTF(3)("Initializing %sFactory\n", classname);
    6366        GameLoader* gl = GameLoader::getInstance();
    6467        gl->registerFactory( this);
     
    8891        while( node != NULL)
    8992        {
    90                 if( node->Type() == TEXT) return node->Value();
    91                 node = node->NextChild();
     93                if( node->ToText()) return node->Value();
     94                node = node->NextSibling();
    9295        }
    9396        return NULL;
Note: See TracChangeset for help on using the changeset viewer.