Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 8, 2006, 4:50:50 PM (18 years ago)
Author:
bensch
Message:

merge

File:
1 edited

Legend:

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

    r8255 r8271  
    139139}
    140140
    141 
     141#include "account.cc"
     142#include "object.cc"
    142143/**
    143144 *  loads the GameWorld by initializing all resources, and set their default values.
     
    181182  this->dataXML = (TiXmlElement*)root->Clone();
    182183
     184
     185  Object* obj= new Object();
     186  obj->setName("Obj");
     187  Account* a = new Account();
     188  a->setName("a");
     189  Account *b = new Account(30);
     190  b->setName("b");
     191 
     192  LoadParamXML(root, "ScriptManager", &this->scriptManager, ScriptManager, loadParams);
     193
    183194  delete XMLDoc;
    184195  this->releaseLoadScreen();
     
    191202ErrorMessage GameWorld::unloadData()
    192203{
     204
    193205  PRINTF(3)("GameWorld::~GameWorld() - unloading the current GameWorld\n");
     206  this->scriptManager.flush();
     207
    194208  delete this->shell;
    195209
     
    215229  this->bRunning = true;
    216230
     231  State::setScripManager(&this->scriptManager);
     232
    217233  this->run();
    218234}
     
    225241{
    226242  PRINTF(3)("GameWorld::stop() - got stop signal\n");
     243  State::setScripManager(NULL);
    227244  this->bRunning = false;
    228245}
Note: See TracChangeset for help on using the changeset viewer.