Changeset 10581 in orxonox.OLD for branches/cleanup/src/world_entities
- Timestamp:
- Feb 8, 2007, 12:20:20 AM (18 years ago)
- Location:
- branches/cleanup/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/src/world_entities/camera.cc
r10495 r10581 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
r10552 r10581 153 153 if( this->entityTrack) 154 154 { 155 this->setParent(this->entityTrack->getTrackNode()); 155 /* this->setParent(this->entityTrack->getTrackNode());*/ 156 156 this->setRelCoor(0,0,0); 157 157 } … … 427 427 this->bFire = false; 428 428 429 if(this->entityTrack)430 this->entityTrack->tick(dt);429 // if(this->entityTrack) 430 // this->entityTrack->tick(dt); 431 431 432 432 } … … 434 434 void NPC::draw() const 435 435 { 436 if( this->entityTrack != NULL && this->isDrawTrack())437 this->entityTrack->drawGraph();436 // if( this->entityTrack != NULL && this->isDrawTrack()) 437 // this->entityTrack->drawGraph(); 438 438 439 439 WorldEntity::draw(); -
branches/cleanup/src/world_entities/space_ships/space_ship.cc
r10579 r10581 494 494 void SpaceShip::draw () const 495 495 { 496 if( this->entityTrack != NULL && this->isDrawTrack())497 this->entityTrack->drawGraph();496 // if( this->entityTrack != NULL && this->isDrawTrack()) 497 // this->entityTrack->drawGraph(); 498 498 499 499 WorldEntity::draw(); … … 551 551 552 552 // Tracktick 553 if(this->entityTrack)554 this->entityTrack->tick(time);553 // if(this->entityTrack) 554 // this->entityTrack->tick(time); 555 555 556 556 … … 868 868 this->isTravelDistanceInit = false; 869 869 870 if(this->entityTrack)871 this->travelNode->setParent(this->entityTrack->getTrackNode());870 // if(this->entityTrack) 871 // this->travelNode->setParent(this->entityTrack->getTrackNode()); 872 872 873 873 this->setParent(this->travelNode); -
branches/cleanup/src/world_entities/test_entity.cc
r10439 r10581 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
r10546 r10581 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.