Changeset 6370 in orxonox.OLD for branches/network/src/story_entities
- Timestamp:
- Dec 31, 2005, 1:52:50 PM (19 years ago)
- Location:
- branches/network/src/story_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/story_entities/campaign.cc
r6368 r6370 122 122 { 123 123 PRINTF(0)("Starting new StoryEntity Nr:%i\n", se->getStoryID()); 124 se->preLoad(); 124 125 se->init(); 126 127 //se->preLoad(); 125 128 se->load(); 126 se->postLoad();127 128 se->init(); 129 //se->postLoad(); 130 131 129 132 se->preStart(); 130 133 se->start(); -
branches/network/src/story_entities/game_world.cc
r6368 r6370 87 87 88 88 this->gameTime = 0.0f; 89 this->setSpeed(1.0 );89 this->setSpeed(1.0f); 90 90 this->music = NULL; 91 91 this->shell = NULL; … … 169 169 * before the load and after the proceeding storyentity has finished 170 170 */ 171 ErrorMessage GameWorld:: preLoad()171 ErrorMessage GameWorld::init() 172 172 { 173 173 State::setObjectManager(&this->objectManager); … … 190 190 191 191 GraphicsEngine::getInstance()->displayFPS(true); 192 this->displayLoadScreen();193 192 } 194 193 … … 199 198 ErrorMessage GameWorld::load() 200 199 { 200 this->displayLoadScreen(); 201 201 202 PRINTF(3)("> Loading world: '%s'\n", getPath()); 202 203 TiXmlElement* element; … … 348 349 //(OggPlayer*)ResourceManager::getInstance()->load("sound/00-luke_grey_-_hypermode.ogg", OGG, RP_LEVEL); 349 350 //music->playback(); 350 } 351 352 ErrorMessage GameWorld::postLoad() 353 { 351 354 352 this->releaseLoadScreen(); 355 353 } -
branches/network/src/story_entities/game_world.h
r6368 r6370 35 35 void loadParams(const TiXmlElement* root); 36 36 37 /* classes from story-entity */ 38 virtual ErrorMessage preLoad(); 39 virtual ErrorMessage load (); 40 virtual ErrorMessage postLoad(); 37 /* functions from story-entity */ 38 virtual ErrorMessage init(); 39 virtual ErrorMessage load(); 41 40 42 41 virtual ErrorMessage preStart(); 43 virtual ErrorMessage start 44 virtual ErrorMessage stop 45 virtual ErrorMessage pause 46 virtual ErrorMessage resume 47 virtual ErrorMessage destroy 42 virtual ErrorMessage start(); 43 virtual ErrorMessage stop(); 44 virtual ErrorMessage pause(); 45 virtual ErrorMessage resume(); 46 virtual ErrorMessage destroy(); 48 47 49 48 virtual void displayLoadScreen();
Note: See TracChangeset
for help on using the changeset viewer.