- Timestamp:
- Dec 14, 2005, 2:12:30 AM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_manager.cc
r6095 r6096 50 50 this->tmpStream = NULL; 51 51 this->hostID = -1; 52 this->bGameServer = false; 52 53 53 54 PRINTF(0)("NetworkManager created\n"); -
branches/network/src/orxonox.cc
r6095 r6096 353 353 this->gameLoader = GameLoader::getInstance(); 354 354 355 if( this->serverName != NULL) 356 this->gameLoader->loadNetworkCampaign("worlds/DefaultCampaign.oxc", NET_CLIENT); /* start as client */ 357 else if( this->port != -1) 358 this->gameLoader->loadNetworkCampaign("worlds/DefaultCampaign.oxc", NET_SERVER); /* start as server */ 355 if( this->port != -1) 356 this->gameLoader->loadNetworkCampaign("worlds/DefaultNetworkCampaign.oxc"); 359 357 else 360 358 this->gameLoader->loadCampaign("worlds/DefaultCampaign.oxc"); /* start orxonox in single player mode */ -
branches/network/src/story_entities/campaign.cc
r5982 r6096 150 150 delete (*it); 151 151 } 152 PRINTF(1)("There is no StoryEnity left to play, quitting\n"); 152 153 } 153 154 -
branches/network/src/story_entities/network_world.cc
r6095 r6096 75 75 76 76 77 //SHELL_COMMAND(speed, NetworkWorld, setSpeed);78 //SHELL_COMMAND(togglePNodeVisibility, NetworkWorld, togglePNodeVisibility);79 //SHELL_COMMAND(toggleBVVisibility, NetworkWorld, toggleBVVisibility);77 SHELL_COMMAND(speed, NetworkWorld, setSpeed); 78 SHELL_COMMAND(togglePNodeVisibility, NetworkWorld, togglePNodeVisibility); 79 SHELL_COMMAND(toggleBVVisibility, NetworkWorld, toggleBVVisibility); 80 80 81 81 using namespace std; 82 82 83 83 //! This creates a Factory to fabricate a NetworkWorld 84 //CREATE_FACTORY(NetworkWorld, CL_WORLD);84 CREATE_FACTORY(NetworkWorld, CL_WORLD); 85 85 86 86 NetworkWorld::NetworkWorld(const TiXmlElement* root) … … 341 341 // find WorldEntities // 342 342 //////////////////////// 343 if( NetworkManager::getInstance()->isGameServer())343 if( /*NetworkManager::getInstance()->isGameServer()*/1) 344 344 { 345 345 element = root->FirstChildElement("WorldEntities"); -
branches/network/src/util/loading/game_loader.cc
r6064 r6096 122 122 * this will interprete the map/campaign files and recursivly load a tree of worlds/campaigns 123 123 */ 124 ErrorMessage GameLoader::loadNetworkCampaign(const char* fileName , int nodeState)124 ErrorMessage GameLoader::loadNetworkCampaign(const char* fileName) 125 125 { 126 126 ErrorMessage errorCode; … … 128 128 if (campaignName) 129 129 { 130 this->currentCampaign = this->fileToNetworkCampaign(campaignName , nodeState);130 this->currentCampaign = this->fileToNetworkCampaign(campaignName); 131 131 delete[] campaignName; 132 132 } … … 296 296 * this will interprete the map/campaign files and recursivly load a tree of worlds/campaigns 297 297 */ 298 Campaign* GameLoader::fileToNetworkCampaign(const char* fileName , int nodeState)298 Campaign* GameLoader::fileToNetworkCampaign(const char* fileName) 299 299 { 300 300 /* do not entirely load the campaign. just the current world -
branches/network/src/util/loading/game_loader.h
r6063 r6096 55 55 ErrorMessage loadCampaign(const char* name); 56 56 ErrorMessage loadDebugCampaign(Uint32 campaignID); 57 ErrorMessage loadNetworkCampaign(const char* fileName , int nodeState);57 ErrorMessage loadNetworkCampaign(const char* fileName); 58 58 59 59 void nextLevel(); … … 67 67 68 68 Campaign* fileToCampaign(const char* name); 69 Campaign* fileToNetworkCampaign(const char* fileName , int nodeState);69 Campaign* fileToNetworkCampaign(const char* fileName); 70 70 71 71
Note: See TracChangeset
for help on using the changeset viewer.