Changeset 10004 in orxonox.OLD for branches/playability/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Dec 3, 2006, 10:36:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/space_ships/space_ship.cc
r10001 r10004 26 26 #include "weapons/medium_blaster.h" 27 27 #include "weapons/heavy_blaster.h" 28 #include "weapons/swarm_missile.h" 28 29 #include "weapons/boomerang_gun.h" 29 30 #include "weapons/turret.h" … … 152 153 wpLeft3->setName("Heavy Blaster Left"); 153 154 154 Weapon* cannon = new BoomerangGun();//Cannon(); 155 cannon->setName("End of World"); 155 Weapon* cannon = new SwarmMissile(); 156 cannon->setName("Swarm Missile"); 157 156 158 157 159 … … 273 275 this->secWeaponMan.setSlotCount(6); 274 276 275 this->secWeaponMan.setSlotPosition(0, Vector( 2.6, -2.5, 0));277 this->secWeaponMan.setSlotPosition(0, Vector(1.5, -1, 0)); 276 278 this->secWeaponMan.setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 277 279 … … 300 302 this->weaponMan.getFixedTarget()->setParent(this); 301 303 this->weaponMan.getFixedTarget()->setRelCoor(100000,0,0); 304 302 305 303 306 this->secWeaponMan.getFixedTarget()->setParent(this); 304 307 this->secWeaponMan.getFixedTarget()->setRelCoor(100000,0,0); 308 this->secWeaponMan.setRotationSpeed(0); 305 309 306 310 dynamic_cast<Element2D*>(this->weaponMan.getFixedTarget())->setVisibility( false); … … 367 371 void SpaceShip::enter() 368 372 { 369 dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( true); 373 this->secWeaponMan.showCrosshair(); 374 //dynamic_cast<Element2D*>(this->secWeaponMan.getFixedTarget())->setVisibility( true); 370 375 this->attachCamera(); 371 376 } … … 373 378 void SpaceShip::leave() 374 379 { 375 dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false); 380 this->secWeaponMan.hideCrosshair(); 381 //dynamic_cast<Element2D*>(this->secWeaponMan.getFixedTarget())->setVisibility( false); 376 382 this->detachCamera(); 377 383 }
Note: See TracChangeset
for help on using the changeset viewer.