Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2006, 7:40:07 PM (18 years ago)
Author:
marcscha
Message:

multiple weapons, crosshair visibility → changelog

File:
1 edited

Legend:

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

    r9996 r9998  
    127127void SpaceShip::init()
    128128{
     129
    129130  //  this->setRelDir(Quaternion(M_PI, Vector(1,0,0)));
    130131  this->registerObject(this, SpaceShip::_objectList);
     
    132133  PRINTF(4)("SPACESHIP INIT\n");
    133134
     135  secWeaponMan.showCrosshair();
     136
    134137  //weapons:
     138
    135139  Weapon* wpRight1 = new LightBlaster ();
    136140  wpRight1->setName("Light Blaster Right");
     
    139143
    140144  Weapon* wpRight2 = new MediumBlaster ();
    141   wpRight2->setName("Light Blaster Right");
     145  wpRight2->setName("Medium Blaster Right");
    142146  Weapon* wpLeft2 = new MediumBlaster ();
    143147  wpLeft2->setName("Medium Blaster Left");
     
    158162  this->weaponMan.addWeapon( wpLeft3, 0, 4);
    159163  this->weaponMan.addWeapon( wpRight3, 0, 5);
     164
    160165  this->secWeaponMan.addWeapon( cannon, 0, 0);
    161166
     
    168173  wpRight3->requestAction(WA_ACTIVATE);
    169174  wpLeft3->requestAction(WA_ACTIVATE);
     175
    170176  cannon->requestAction(WA_ACTIVATE);
    171177
     
    294300  this->weaponMan.getFixedTarget()->setParent(this);
    295301  this->weaponMan.getFixedTarget()->setRelCoor(100000,0,0);
    296 
     302 
    297303  this->secWeaponMan.getFixedTarget()->setParent(this);
    298304  this->secWeaponMan.getFixedTarget()->setRelCoor(100000,0,0);
Note: See TracChangeset for help on using the changeset viewer.