Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4822 in orxonox.OLD for orxonox/trunk/src/orxonox.cc


Ignore:
Timestamp:
Jul 8, 2005, 11:19:49 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: Singleton-Classes are now refered to as such in World and Orxonox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.cc

    r4817 r4822  
    6767  this->setName("orxonox-main");
    6868
    69   this->resourceManager = NULL;
    70   this->objectManager = NULL;
    71   this->eventHandler = NULL;
    7269  this->iniParser = NULL;
    7370
     
    186183  PRINT(3)("> Initializing input\n");
    187184
    188   this->eventHandler = EventHandler::getInstance();
    189   this->eventHandler->init();
     185  EventHandler::getInstance()->init();
    190186
    191187  return 0;
     
    213209
    214210  PRINT(3)("initializing ResourceManager\n");
    215   resourceManager = ResourceManager::getInstance();
    216211
    217212  // create parser
     
    231226    {
    232227          //  printf("Not yet implemented\n");
    233       if (!resourceManager->setDataDir(valuebuf))
     228      if (!ResourceManager::getInstance()->setDataDir(valuebuf))
    234229      {
    235230        PRINTF(1)("Data Could not be located\n");
     
    242237  }
    243238
    244   if (!resourceManager->checkDataDir(DEFAULT_DATA_DIR_CHECKFILE))
     239  if (!ResourceManager::getInstance()->checkDataDir(DEFAULT_DATA_DIR_CHECKFILE))
    245240  {
    246241    PRINTF(1)("The DataDirectory %s could not be verified\n" \
    247242              "  Please Change in File %s Section %s Entry %s to a suitable value\n",
    248               resourceManager->getDataDir(),
     243              ResourceManager::getInstance()->getDataDir(),
    249244              DEFAULT_CONFIG_FILE,
    250245              CONFIG_SECTION_DATA,
     
    253248  }
    254249   //! \todo this is a hack and should be loadable
    255   resourceManager->addImageDir(ResourceManager::getInstance()->getFullName("maps/"));
    256   resourceManager->debug();
     250  ResourceManager::getInstance()->addImageDir(ResourceManager::getInstance()->getFullName("maps/"));
     251  ResourceManager::getInstance()->debug();
    257252
    258253  PRINT(3)("initializing TextEngine\n");
     
    260255
    261256  PRINT(3)("initializing ObjectManager\n");
    262   this->objectManager = ObjectManager::getInstance();
    263 
     257  ObjectManager::getInstance();
    264258  CDEngine::getInstance();
    265259
Note: See TracChangeset for help on using the changeset viewer.