Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8717 in orxonox.OLD for trunk/src/story_entities/game_world.cc


Ignore:
Timestamp:
Jun 22, 2006, 2:04:28 PM (19 years ago)
Author:
bensch
Message:

merged the gui back

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r8711 r8717  
    140140  State::setScriptManager(&this->scriptManager);
    141141
     142  return ErrorMessage();
    142143}
    143144
     
    153154
    154155  PRINTF(3)("> Loading world: '%s'\n", getLoadFile().c_str());
    155   TiXmlElement* element;
    156   GameLoader* loader = GameLoader::getInstance();
     156//  TiXmlElement* element;
     157//  GameLoader* loader = GameLoader::getInstance();
    157158
    158159  if( getLoadFile().empty())
    159160  {
    160161    PRINTF(1)("GameWorld has no path specified for loading\n");
    161     return (ErrorMessage){213,"Path not specified","GameWorld::load()"};
     162    return (ErrorMessage(213,"Path not specified","GameWorld::load()"));
    162163  }
    163164
     
    168169    PRINTF(1)("loading XML File: %s @ %s:l%d:c%d\n", XMLDoc->ErrorDesc(), this->getLoadFile().c_str(), XMLDoc->ErrorRow(), XMLDoc->ErrorCol());
    169170    delete XMLDoc;
    170     return (ErrorMessage){213,"XML File parsing error","GameWorld::load()"};
     171    return ErrorMessage(213,"XML File parsing error","GameWorld::load()");
    171172  }
    172173  // check basic validity
     
    178179    PRINTF(1)("Specified XML File is not an orxonox world data file (WorldDataFile element missing)\n");
    179180    delete XMLDoc;
    180     return (ErrorMessage){213,"Path not a WorldDataFile","GameWorld::load()"};
     181    return ErrorMessage(213,"Path not a WorldDataFile","GameWorld::load()");
    181182  }
    182183  /* the whole loading process for the GameWorld */
     
    191192  //Account *b = new Account(30);
    192193  //b->setName("b");
     194
    193195 
    194196  LoadParamXML(root, "ScriptManager", &this->scriptManager, ScriptManager, loadParams);
     
    196198  delete XMLDoc;
    197199  this->releaseLoadScreen();
     200
     201  return ErrorMessage();
    198202}
    199203
     
    220224  if (this->dataXML)
    221225    delete this->dataXML;
     226
     227  return ErrorMessage();
    222228}
    223229
     
    232238  State::setScriptManager(&this->scriptManager); //make sure we have the right script manager
    233239  this->run();
     240
     241  return true;
    234242}
    235243
     
    242250  PRINTF(3)("GameWorld::stop() - got stop signal\n");
    243251  State::setScriptManager(NULL);
    244   this->bRunning = false;
     252  return (this->bRunning = false);
    245253}
    246254
     
    251259bool GameWorld::pause()
    252260{
    253   this->bPaused = true;
     261  return (this->bPaused = true);
    254262}
    255263
     
    260268bool GameWorld::resume()
    261269{
    262   this->bPaused = false;
     270  return(this->bPaused = false);
    263271}
    264272
     
    410418    if( likely(this->dataTank->gameRule != NULL))
    411419      this->dataTank->gameRule->tick(this->dtS);
    412      
     420
    413421  }
    414422}
Note: See TracChangeset for help on using the changeset viewer.