Changeset 8271 in orxonox.OLD for trunk/src/story_entities/game_world.cc
- Timestamp:
- Jun 8, 2006, 4:50:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r8255 r8271 139 139 } 140 140 141 141 #include "account.cc" 142 #include "object.cc" 142 143 /** 143 144 * loads the GameWorld by initializing all resources, and set their default values. … … 181 182 this->dataXML = (TiXmlElement*)root->Clone(); 182 183 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 183 194 delete XMLDoc; 184 195 this->releaseLoadScreen(); … … 191 202 ErrorMessage GameWorld::unloadData() 192 203 { 204 193 205 PRINTF(3)("GameWorld::~GameWorld() - unloading the current GameWorld\n"); 206 this->scriptManager.flush(); 207 194 208 delete this->shell; 195 209 … … 215 229 this->bRunning = true; 216 230 231 State::setScripManager(&this->scriptManager); 232 217 233 this->run(); 218 234 } … … 225 241 { 226 242 PRINTF(3)("GameWorld::stop() - got stop signal\n"); 243 State::setScripManager(NULL); 227 244 this->bRunning = false; 228 245 }
Note: See TracChangeset
for help on using the changeset viewer.