Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 31, 2005, 1:40:55 PM (20 years ago)
Author:
patrick
Message:

network: digging deeper to bring more sense into the framework

File:
1 edited

Legend:

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

    r6366 r6368  
    8383GameWorld::GameWorld(const TiXmlElement* root)
    8484{
    85   this->constuctorInit("", -1);
     85  this->setClassID(CL_GAME_WORLD, "GameWorld");
     86  this->setName("Preloaded World - no name yet");
     87
     88  this->gameTime = 0.0f;
     89  this->setSpeed(1.0);
     90  this->music = NULL;
     91  this->shell = NULL;
     92  this->localPlayer = NULL;
     93  this->localCamera = NULL;
     94
     95  this->showPNodes = false;
     96  this->showBV = false;
     97
    8698  this->path = NULL;
    8799
     
    130142}
    131143
    132 /**
    133  *  initializes the world.
    134  * @param name the name of the world
    135  * @param worldID the ID of this world
    136  *
    137  * set all stuff here that is world generic and does not use to much memory
    138  * because the real init() function StoryEntity::init() will be called
    139  * shortly before start of the game.
    140  * since all worlds are initiated/referenced before they will be started.
    141  * NO LEVEL LOADING HERE - NEVER!
    142 */
    143 void GameWorld::constuctorInit(const char* name, int worldID)
    144 {
    145   this->setClassID(CL_GAME_WORLD, "GameWorld");
    146   this->setName(name);
    147 
    148   this->gameTime = 0.0f;
    149   this->setSpeed(1.0);
    150   this->music = NULL;
    151   this->shell = NULL;
    152   this->localPlayer = NULL;
    153   this->localCamera = NULL;
    154 
    155   this->showPNodes = false;
    156   this->showBV = false;
    157 }
     144
    158145
    159146/**
     
    174161    .describe("The Filename of this GameWorld (relative from the data-dir)");
    175162}
     163
    176164
    177165/**
Note: See TracChangeset for help on using the changeset viewer.