Changeset 8271 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Jun 8, 2006, 4:50:50 PM (18 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 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 } -
trunk/src/story_entities/game_world.h
r8190 r8271 11 11 #include "game_world_data.h" 12 12 #include "playable.h" 13 #include "script_manager.h" 13 14 14 15 namespace OrxShell { class Shell; }; 15 16 class WorldEntity; 16 17 class GameRules; 18 17 19 18 20 /** How many frames time values to keep … … 103 105 GameRules* gameRules; //!< Pointer to the data structure containig the game rules 104 106 105 106 107 private: 107 108 /* external modules interfaces */ 109 ScriptManager scriptManager; 108 110 OrxShell::Shell* shell; 109 111 };
Note: See TracChangeset
for help on using the changeset viewer.