Changeset 6368 in orxonox.OLD for branches/network/src/story_entities/game_world.cc
- Timestamp:
- Dec 31, 2005, 1:40:55 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/story_entities/game_world.cc
r6366 r6368 83 83 GameWorld::GameWorld(const TiXmlElement* root) 84 84 { 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 86 98 this->path = NULL; 87 99 … … 130 142 } 131 143 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 158 145 159 146 /** … … 174 161 .describe("The Filename of this GameWorld (relative from the data-dir)"); 175 162 } 163 176 164 177 165 /**
Note: See TracChangeset
for help on using the changeset viewer.