Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6370 in orxonox.OLD for branches/network/src/story_entities


Ignore:
Timestamp:
Dec 31, 2005, 1:52:50 PM (19 years ago)
Author:
patrick
Message:

network: working on campaing and gameworld structure

Location:
branches/network/src/story_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/story_entities/campaign.cc

    r6368 r6370  
    122122    {
    123123      PRINTF(0)("Starting new StoryEntity Nr:%i\n", se->getStoryID());
    124       se->preLoad();
     124
     125      se->init();
     126
     127      //se->preLoad();
    125128      se->load();
    126       se->postLoad();
    127 
    128       se->init();
     129      //se->postLoad();
     130
     131
    129132      se->preStart();
    130133      se->start();
  • branches/network/src/story_entities/game_world.cc

    r6368 r6370  
    8787
    8888  this->gameTime = 0.0f;
    89   this->setSpeed(1.0);
     89  this->setSpeed(1.0f);
    9090  this->music = NULL;
    9191  this->shell = NULL;
     
    169169 * before the load and after the proceeding storyentity has finished
    170170*/
    171 ErrorMessage GameWorld::preLoad()
     171ErrorMessage GameWorld::init()
    172172{
    173173  State::setObjectManager(&this->objectManager);
     
    190190
    191191  GraphicsEngine::getInstance()->displayFPS(true);
    192   this->displayLoadScreen();
    193192}
    194193
     
    199198ErrorMessage GameWorld::load()
    200199{
     200  this->displayLoadScreen();
     201
    201202  PRINTF(3)("> Loading world: '%s'\n", getPath());
    202203  TiXmlElement* element;
     
    348349  //(OggPlayer*)ResourceManager::getInstance()->load("sound/00-luke_grey_-_hypermode.ogg", OGG, RP_LEVEL);
    349350  //music->playback();
    350 }
    351 
    352 ErrorMessage GameWorld::postLoad()
    353 {
     351
    354352  this->releaseLoadScreen();
    355353}
  • branches/network/src/story_entities/game_world.h

    r6368 r6370  
    3535    void loadParams(const TiXmlElement* root);
    3636
    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();
    4140
    4241    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();
    4847
    4948    virtual void displayLoadScreen();
Note: See TracChangeset for help on using the changeset viewer.