Changeset 2640 in orxonox.OLD for orxonox/trunk/src/world.cc
- Timestamp:
- Oct 25, 2004, 2:01:06 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world.cc
r2636 r2640 50 50 World::~World () 51 51 { 52 unload (); 52 Orxonox *orx = Orxonox::getInstance(); 53 orx->get_localinput()->unbind (localPlayer); 53 54 delete entities; 54 55 } … … 72 73 this->bQuitCurrentGame = true; 73 74 this->localCamera->setWorld(NULL); 75 this->~World(); 74 76 } 75 77 … … 111 113 // create a player 112 114 WorldEntity* myPlayer = (WorldEntity*) this->spawn<Player>(); 113 115 this->localPlayer = myPlayer; 116 114 117 // bind input 115 118 Orxonox *orx = Orxonox::getInstance(); … … 142 145 // create a player 143 146 WorldEntity* myPlayer = (WorldEntity*) this->spawn<Player>(); 147 this->localPlayer = myPlayer; 144 148 145 149 // bind input … … 394 398 } 395 399 400 void World::debug() 401 { 402 List<WorldEntity> *l; 403 WorldEntity* entity; 404 405 printf("counting all entities\n"); 406 l = entities->get_next(); 407 while( l != NULL ) 408 { 409 entity = l->get_object(); 410 if( entity->bDraw ) printf("got an entity\n"); 411 l = l->get_next(); 412 } 413 } 414 396 415 397 416 void World::mainLoop() … … 403 422 while(!this->bQuitOrxonox && !this->bQuitCurrentGame) /* pause pause pause ?!?!?*/ 404 423 { 424 //debug routine 425 //debug(); 405 426 // Network 406 427 synchronize();
Note: See TracChangeset
for help on using the changeset viewer.