Changeset 3604 in orxonox.OLD for orxonox/branches
- Timestamp:
- Mar 18, 2005, 10:49:55 AM (20 years ago)
- Location:
- orxonox/branches/levelloader/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/story_entities/world.cc
r3557 r3604 212 212 if( created != NULL) this->spawn( created); 213 213 // if we load a 'Player' we use it as localPlayer 214 // if( element->Value() != NULL && !strcmp( element->Value(), "Player")) localPlayer = (Player*) created; 214 //todo do this more elegant 215 if( element->Value() != NULL && !strcmp( element->Value(), "Player")) localPlayer = (Player*) created; 215 216 element = element->NextSiblingElement(); 216 217 } … … 722 723 { 723 724 this->lastFrame = SDL_GetTicks (); 724 printf("World::mainLoop() - Entering main loop \n");725 printf("World::mainLoop() - Entering main loop of '%s'\n", this->worldName); 725 726 while( !this->bQuitOrxonox && !this->bQuitCurrentGame) /* \todo implement pause */ 726 727 { … … 735 736 } 736 737 // Process time 737 738 this->timeSlice (); 738 739 // Process collision 739 740 this->collide (); 740 741 // Draw 741 742 this->display (); 742 743 743 744 for( int i = 0; i < 5000000; i++) {} … … 805 806 /* function to let all entities tick (iterate through list) */ 806 807 WorldEntity* entity; 807 float seconds = dt / 1000.0; 808 float seconds = dt / 1000.0; 809 assert( this->nullParent != NULL); 808 810 this->nullParent->update (seconds); 809 811 entity = entities->enumerate(); … … 813 815 entity = entities->nextElement(); 814 816 } 815 skySphere->updatePosition(localCamera->absCoordinate); 817 //assert( skySphere != NULL); 818 //skySphere->updatePosition(localCamera->absCoordinate); 816 819 817 820 /* update tick the rest */ 821 assert( this->localCamera != NULL); 822 assert( this->trackManager != NULL); 818 823 this->localCamera->timeSlice(dt); 819 824 this->trackManager->tick(dt); -
orxonox/branches/levelloader/src/world_entities/player.cc
r3542 r3604 73 73 if( string == NULL) 74 74 { 75 PRINTF (1)("Player is missing a proper 'name'\n");75 PRINTF0("Player is missing a proper 'name'\n"); 76 76 string = "Unknown"; 77 77 temp = new char[strlen(string + 2)]; … … 92 92 else 93 93 { 94 PRINTF (1)("Player is missing a proper 'model'\n");94 PRINTF0("Player is missing a proper 'model'\n"); 95 95 this->model = new OBJModel( "../data/models/reaplow.obj"); 96 96 } 97 97 if( this->model == NULL) 98 98 { 99 PRINTF (1)("Player model '%s' could not be loaded\n", string);99 PRINTF0("Player model '%s' could not be loaded\n", string); 100 100 } 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.