Changeset 10588 in orxonox.OLD for branches/cleanup/src/world_entities
- Timestamp:
- Feb 13, 2007, 3:36:20 PM (18 years ago)
- Location:
- branches/cleanup/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/src/world_entities/camera.cc
r10581 r10588 102 102 103 103 //add to track 104 /*if(this->entityTrack)104 if(this->entityTrack) 105 105 { 106 106 this->setParent(this->entityTrack->getTrackNode()); 107 107 //this->setRelCoor(0,0,0); 108 } */108 } 109 109 } 110 110 … … 227 227 { 228 228 //PRINTF(0)("tickytackytucky\n"); 229 /* this->entityTrack->tick(dt);*/ 229 this->entityTrack->tick(dt); 230 230 //this->setAbsCoor(this->entityTrack->getTrackNode()->getAbsCoor()); 231 231 } … … 240 240 void Camera::draw() const 241 241 { 242 /*if( this->entityTrack != NULL && this->isDrawTrack())243 this->entityTrack->drawGraph(); */242 if( this->entityTrack != NULL && this->isDrawTrack()) 243 this->entityTrack->drawGraph(); 244 244 } 245 245 -
branches/cleanup/src/world_entities/npcs/npc.cc
r10583 r10588 152 152 if( this->entityTrack) 153 153 { 154 /* this->setParent(this->entityTrack->getTrackNode());*/ 154 this->setParent(this->entityTrack->getTrackNode()); 155 155 this->setRelCoor(0,0,0); 156 156 } … … 426 426 this->bFire = false; 427 427 428 //if(this->entityTrack)429 //this->entityTrack->tick(dt);428 if(this->entityTrack) 429 this->entityTrack->tick(dt); 430 430 431 431 } … … 433 433 void NPC::draw() const 434 434 { 435 //if( this->entityTrack != NULL && this->isDrawTrack())436 //this->entityTrack->drawGraph();435 if( this->entityTrack != NULL && this->isDrawTrack()) 436 this->entityTrack->drawGraph(); 437 437 438 438 WorldEntity::draw(); -
branches/cleanup/src/world_entities/space_ships/space_ship.cc
r10583 r10588 493 493 void SpaceShip::draw () const 494 494 { 495 //if( this->entityTrack != NULL && this->isDrawTrack())496 //this->entityTrack->drawGraph();495 if( this->entityTrack != NULL && this->isDrawTrack()) 496 this->entityTrack->drawGraph(); 497 497 498 498 WorldEntity::draw(); … … 550 550 551 551 // Tracktick 552 //if(this->entityTrack)553 //this->entityTrack->tick(time);552 if(this->entityTrack) 553 this->entityTrack->tick(time); 554 554 555 555 … … 867 867 this->isTravelDistanceInit = false; 868 868 869 //if(this->entityTrack)870 //this->travelNode->setParent(this->entityTrack->getTrackNode());869 if(this->entityTrack) 870 this->travelNode->setParent(this->entityTrack->getTrackNode()); 871 871 872 872 this->setParent(this->travelNode); -
branches/cleanup/src/world_entities/test_entity.cc
r10581 r10588 86 86 87 87 //add to track 88 //if(this->entityTrack)89 //this->setParent(this->entityTrack->getTrackNode());88 if(this->entityTrack) 89 this->setParent(this->entityTrack->getTrackNode()); 90 90 91 91 } … … 138 138 139 139 140 //if( this->entityTrack != NULL)141 //this->entityTrack->drawGraph();140 if( this->entityTrack != NULL) 141 this->entityTrack->drawGraph(); 142 142 143 143 } … … 148 148 void TestEntity::tick (float time) 149 149 { 150 //if(this->entityTrack)151 //this->entityTrack->tick(time);150 if(this->entityTrack) 151 this->entityTrack->tick(time); 152 152 153 153 -
branches/cleanup/src/world_entities/world_entity.cc
r10581 r10588 185 185 { 186 186 // The problem we have is most likely here. The track should be constructed WITH the XML-Code 187 /*this->entityTrack = new Track(root);187 this->entityTrack = new Track(root); 188 188 this->setParent(this->entityTrack->getTrackNode()); 189 this->entityTrack->getTrackNode()->setParentMode(PNODE_ALL); */189 this->entityTrack->getTrackNode()->setParentMode(PNODE_ALL); 190 190 /*LOAD_PARAM_START_CYCLE(root, element); 191 191 { … … 200 200 void WorldEntity::pauseTrack(bool stop) 201 201 { 202 /*if(this->entityTrack)203 this->entityTrack->pauseTrack(stop); */202 if(this->entityTrack) 203 this->entityTrack->pauseTrack(stop); 204 204 } 205 205
Note: See TracChangeset
for help on using the changeset viewer.