Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2006, 10:36:50 PM (18 years ago)
Author:
marcscha
Message:

see changelog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10001 r10004  
    2626#include "weapons/medium_blaster.h"
    2727#include "weapons/heavy_blaster.h"
     28#include "weapons/swarm_missile.h"
    2829#include "weapons/boomerang_gun.h"
    2930#include "weapons/turret.h"
     
    152153  wpLeft3->setName("Heavy Blaster Left");
    153154
    154   Weapon* cannon = new BoomerangGun();//Cannon();
    155   cannon->setName("End of World");
     155  Weapon* cannon = new SwarmMissile();
     156  cannon->setName("Swarm Missile");
     157 
    156158
    157159
     
    273275  this->secWeaponMan.setSlotCount(6);
    274276
    275   this->secWeaponMan.setSlotPosition(0, Vector(2.6, -2.5, 0));
     277  this->secWeaponMan.setSlotPosition(0, Vector(1.5, -1, 0));
    276278  this->secWeaponMan.setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    277279
     
    300302  this->weaponMan.getFixedTarget()->setParent(this);
    301303  this->weaponMan.getFixedTarget()->setRelCoor(100000,0,0);
     304
    302305 
    303306  this->secWeaponMan.getFixedTarget()->setParent(this);
    304307  this->secWeaponMan.getFixedTarget()->setRelCoor(100000,0,0);
     308  this->secWeaponMan.setRotationSpeed(0);
    305309
    306310  dynamic_cast<Element2D*>(this->weaponMan.getFixedTarget())->setVisibility( false);
     
    367371void SpaceShip::enter()
    368372{
    369   dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( true);
     373  this->secWeaponMan.showCrosshair();
     374  //dynamic_cast<Element2D*>(this->secWeaponMan.getFixedTarget())->setVisibility( true);
    370375  this->attachCamera();
    371376}
     
    373378void SpaceShip::leave()
    374379{
    375   dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false);
     380  this->secWeaponMan.hideCrosshair();
     381  //dynamic_cast<Element2D*>(this->secWeaponMan.getFixedTarget())->setVisibility( false);
    376382  this->detachCamera();
    377383}
Note: See TracChangeset for help on using the changeset viewer.