Changeset 10739 in orxonox.OLD for branches/presentation/src/world_entities/space_ships
- Timestamp:
- Jun 20, 2007, 7:47:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/space_ships/space_ship.cc
r10734 r10739 75 75 #include "track/action_box.h" 76 76 77 78 #include "weapons/aiming_system.h" 77 79 78 80 ObjectListDefinition(SpaceShip); … … 141 143 if (root != NULL) 142 144 this->loadParams(root); 145 146 printf("SSGROUP: %d\n", this->getOMListNumber()); 143 147 144 148 } … … 150 154 void SpaceShip::init() 151 155 { 152 153 srand(time(0)); //initialize Random Nomber Generator 156 toList( OM_GROUP_01 ); 154 157 155 158 // this->setRelDir(Quaternion(M_PI, Vector(1,0,0))); … … 175 178 176 179 177 this->weaponMan.addWeaponToSlot(0, 0, "RFCannon");180 /* this->weaponMan.addWeaponToSlot(0, 0, "RFCannon"); 178 181 this->weaponMan.addWeaponToSlot(0, 1, "RFCannon"); 179 182 this->weaponMan.addWeaponToSlot(0, 2, "RFCannon"); … … 182 185 this->weaponMan.addWeaponToSlot(1, 1, "RFCannon"); 183 186 this->weaponMan.addWeaponToSlot(1, 2, "RFCannon"); 184 this->weaponMan.addWeaponToSlot(1, 3, "RFCannon"); 185 186 this->weaponMan.addWeaponToSlot(0, 4, "NadionLaser");187 this->weaponMan.addWeaponToSlot(1, 3, "RFCannon");*/ 188 189 /* this->weaponMan.addWeaponToSlot(0, 4, "NadionLaser"); 187 190 this->weaponMan.addWeaponToSlot(0, 5, "NadionLaser"); 188 191 this->weaponMan.addWeaponToSlot(2, 4, "NadionLaser"); 189 this->weaponMan.addWeaponToSlot(2, 5, "NadionLaser"); 192 this->weaponMan.addWeaponToSlot(2, 5, "NadionLaser");*/ 190 193 191 194 this->weaponMan.addWeaponToSlot(0, 6, "Disruptor"); … … 292 295 293 296 294 this->toList(OM_GROUP_00);297 //this->toList(OM_GROUP_00); 295 298 296 299 … … 380 383 { 381 384 this->secWeaponMan.showCrosshair(); 382 this->toList( OM_GROUP_01 );385 //this->toList( OM_GROUP_01 ); 383 386 State::getPlayer()->hud().setRadarCenterNode(this->travelNode); 384 387 State::getPlayer()->hud().setOverlayActive(true); … … 388 391 { 389 392 this->secWeaponMan.hideCrosshair(); 390 this->toList( OM_GROUP_00);393 //this->toList( OM_GROUP_00); 391 394 State::getPlayer()->hud().setOverlayActive(false); 392 395 State::getCamera()->setEventHandling(true); … … 419 422 void SpaceShip::draw () const 420 423 { 421 // if( this->entityTrack != NULL && this->isDrawTrack())424 if( this->entityTrack != NULL /*&& this->isDrawTrack()*/) 422 425 this->entityTrack->drawGraph(); 423 426 … … 452 455 void SpaceShip::tick (float time) 453 456 { 457 // printf("SSGROUP: %d\n", this->getOMListNumber()); 454 458 455 459 if( !this->bInit)
Note: See TracChangeset
for help on using the changeset viewer.