Changeset 9110 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Jul 4, 2006, 11:18:41 AM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r9061 r9110 64 64 using namespace std; 65 65 66 #include "script_class.h" 67 CREATE_SCRIPTABLE_CLASS(GameWorld, CL_GAME_WORLD, 68 addMethod("setPlaymode", ExecutorLua1<GameWorld,const std::string&>(&GameWorld::setPlaymode)) 69 ); 66 70 67 71 SHELL_COMMAND(speed, GameWorld, setSpeed) ->describe("set the Speed of the Level"); … … 336 340 this->dataTank->localPlayer->getPlayable()->setPlaymode(playmode)) 337 341 { 338 PRINTF( 3)("Set Playmode to %d:%s\n", playmode, Playable::playmodeToString(playmode).c_str());342 PRINTF(4)("Set Playmode to %d:%s\n", playmode, Playable::playmodeToString(playmode).c_str()); 339 343 } 340 344 else 341 345 { 342 PRINTF( 1)("Unable to set Playmode %d:'%s'\n", playmode, Playable::playmodeToString(playmode).c_str());346 PRINTF(2)("Unable to set Playmode %d:'%s'\n", playmode, Playable::playmodeToString(playmode).c_str()); 343 347 } 344 348 } -
trunk/src/story_entities/menu/game_menu.cc
r9059 r9110 236 236 if (this->networkBox == NULL) 237 237 { 238 this->networkBox = new OrxGui::GLGuiBox( );238 this->networkBox = new OrxGui::GLGuiBox( OrxGui::Horizontal ); 239 239 { 240 OrxGui::GLGuiBox * box = new OrxGui::GLGuiBox(); 241 240 242 OrxGui::GLGuiButton* clientButton = new OrxGui::GLGuiPushButton("Client"); 241 networkBox->pack(clientButton);243 box->pack(clientButton); 242 244 clientButton->connect(SIGNAL(clientButton, released), this, SLOT(GameMenu, showClientMenu)); 243 245 244 246 OrxGui::GLGuiButton* serverButton = new OrxGui::GLGuiPushButton("Server"); 245 networkBox->pack(serverButton);247 box->pack(serverButton); 246 248 serverButton->connect(SIGNAL(serverButton, released), this, SLOT(GameMenu, showServerMenu)); 247 248 249 250 networkBox->pack( box ); 249 251 } 250 252 } … … 511 513 if ( this->serverNetworkBox ) 512 514 { 513 delete this->serverNetworkBox; 514 this->serverNetworkBox = NULL; 515 this->networkBox->unpack( this->serverNetworkBox ); 516 this->serverNetworkBox->hideAll(); 517 //delete this->serverNetworkBox; 518 //this->serverNetworkBox = NULL; 515 519 } 516 520 … … 535 539 } 536 540 541 this->networkBox->pack( this->clientNetworkBox ); 542 537 543 this->clientNetworkBox->showAll(); 538 544 539 this->clientNetworkBox->setAbsCoor2D( 300.0f, 100.0f );545 //this->clientNetworkBox->setAbsCoor2D( 300.0f, 100.0f ); 540 546 } 541 547 … … 547 553 if ( this->clientNetworkBox ) 548 554 { 549 delete this->clientNetworkBox; 550 this->clientNetworkBox = NULL; 555 this->networkBox->unpack( this->clientNetworkBox ); 556 this->clientNetworkBox->hideAll(); 557 //delete this->clientNetworkBox; 558 //this->clientNetworkBox = NULL; 551 559 } 552 560 … … 569 577 } 570 578 579 this->networkBox->pack( this->serverNetworkBox ); 580 571 581 this->serverNetworkBox->showAll(); 572 582 573 this->serverNetworkBox->setAbsCoor2D( 300.0f, 100.0f );583 //this->serverNetworkBox->setAbsCoor2D( 300.0f, 100.0f ); 574 584 } 575 585 -
trunk/src/story_entities/multi_player_world.cc
r9059 r9110 129 129 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_01), 130 130 this->dataTank->objectManager->getObjectList(OM_PLAYERS_PROJ)); 131 132 133 134 // ground collision detection: BSP Model 135 CDEngine::getInstance()->checkCollisionGround(this->dataTank->objectManager->getObjectList(OM_GROUP_00)); 136 CDEngine::getInstance()->checkCollisionGround(this->dataTank->objectManager->getObjectList(OM_GROUP_01)); 137 CDEngine::getInstance()->checkCollisionGround(this->dataTank->objectManager->getObjectList(OM_PLAYERS)); 131 138 } 132 139 … … 153 160 154 161 State::setOnline( false ); 155 162 156 163 return ErrorMessage(); 157 164 }
Note: See TracChangeset
for help on using the changeset viewer.