Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 31, 2005, 3:53:45 PM (18 years ago)
Author:
patrick
Message:

network: single player loads again, many changes in the function bodies of the loading code

File:
1 edited

Legend:

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

    r6365 r6374  
    3838  : GameWorld(root)
    3939{
     40  this->setClassID(CL_SINGLE_PLAYER_WORLD, "SinglePlayerSinglePlayerWorld");
     41  this->setName("SinglePlayerWorld uninitialized");
     42
    4043  this->loadParams(root);
    4144}
     
    5154{
    5255  PRINTF(3)("SinglePlayerWorld::~SinglePlayerWorld() - deleting current world\n");
    53 }
    54 
    55 
    56 /**
    57  * initializes the world.
    58  * @param name the name of the world
    59  * @param worldID the ID of this world
    60  *
    61  * set all stuff here that is world generic and does not use to much memory
    62  * because the real init() function StoryEntity::init() will be called
    63  * shortly before start of the game.
    64  * since all worlds are initiated/referenced before they will be started.
    65  * NO LEVEL LOADING HERE - NEVER!
    66 */
    67 void SinglePlayerWorld::constuctorInit(const char* name, int worldID)
    68 {
    69   this->setClassID(CL_SINGLE_PLAYER_WORLD, "SinglePlayerSinglePlayerWorld");
    70   this->setName(name);
    71 
    72   this->gameTime = 0.0f;
    73   this->setSpeed(1.0);
    74   this->music = NULL;
    75   this->shell = NULL;
    76   this->localPlayer = NULL;
    77   this->localCamera = NULL;
    78 
    79   this->showPNodes = false;
    80   this->showBV = false;
    8156}
    8257
Note: See TracChangeset for help on using the changeset viewer.