Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 6, 2006, 5:35:28 PM (17 years ago)
Author:
marcscha
Message:

Second Weapon Ammo Widget Support

File:
1 edited

Legend:

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

    r10024 r10030  
    145145
    146146  Weapon* wpRight1 = new LightBlaster ();
    147   wpRight1->setName("Light Blaster Right");
     147  wpRight1->setName("LightBlaster");
    148148  Weapon* wpLeft1 = new LightBlaster ();
    149   wpLeft1->setName("Medium Blaster Left");
     149  wpLeft1->setName("LightBlaster");
    150150
    151151  Weapon* wpRight2 = new MediumBlaster ();
    152   wpRight2->setName("Medium Blaster Right");
     152  wpRight2->setName("MediumBlaster");
    153153  Weapon* wpLeft2 = new MediumBlaster ();
    154   wpLeft2->setName("Medium Blaster Left");
    155 
    156 /*  Weapon* wpRight3 = new HeavyBlaster ();
    157   wpRight3->setName("Heavy Blaster Right");
     154  wpLeft2->setName("MediumBlaster");
     155
     156  Weapon* wpRight3 = new HeavyBlaster ();
     157  wpRight3->setName("HeavyBlaster");
    158158  Weapon* wpLeft3 = new HeavyBlaster ();
    159   wpLeft3->setName("Heavy Blaster Left");*/
     159  wpLeft3->setName("HeavyBlaster");
    160160
    161161  Weapon* cannon = new SwarmLauncher();
     
    168168  this->weaponMan.addWeapon( wpLeft2, 0, 2);
    169169  this->weaponMan.addWeapon( wpRight2, 0, 3);
    170 /*  this->weaponMan.addWeapon( wpLeft3, 0, 4);
    171   this->weaponMan.addWeapon( wpRight3, 0, 5);*/
     170  this->weaponMan.addWeapon( wpLeft3, 0, 4);
     171  this->weaponMan.addWeapon( wpRight3, 0, 5);
    172172
    173173  this->secWeaponMan.addWeapon( cannon, 1, 0);
     
    180180  wpRight2->requestAction(WA_ACTIVATE);
    181181  wpLeft2->requestAction(WA_ACTIVATE);
    182 /*  wpRight3->requestAction(WA_ACTIVATE);
    183   wpLeft3->requestAction(WA_ACTIVATE);*/
     182  wpRight3->requestAction(WA_ACTIVATE);
     183  wpLeft3->requestAction(WA_ACTIVATE);
    184184
    185185  cannon->requestAction(WA_ACTIVATE);
Note: See TracChangeset for help on using the changeset viewer.