Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4953 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc


Ignore:
Timestamp:
Jul 25, 2005, 12:22:24 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Slots are now PNodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/player.cc

    r4952 r4953  
    4646
    4747  //weapons:
    48   Weapon* wpRight = new TestGun(this, Vector(-2.6, 0.1, 3.0), Quaternion(), 0);
    49   Weapon* wpLeft = new TestGun(this, Vector(-2.6, 0.1, -3.0), Quaternion(), 1);
     48  Weapon* wpRight = new TestGun(0);
     49  Weapon* wpLeft = new TestGun(1);
    5050
    5151  this->weaponMan->addWeapon(wpRight);
     
    8080
    8181  //weapons:
    82   Weapon* wpRight = new TestGun(this, Vector(-2.6, 0.1, 3.0), Quaternion(), 0);
    83   Weapon* wpLeft = new TestGun(this, Vector(-2.6, 0.1, -3.0), Quaternion(), 1);
    84 
    85   this->weaponMan->addWeapon(wpRight, 0,0);
    86   this->weaponMan->addWeapon(wpLeft, 0, 1);
    87   this->weaponMan->addWeapon(wpLeft, 1, 1);
    88   this->weaponMan->addWeapon(wpRight, 2, 0);
    89 /*  this->weaponMan->addWeapon(wpRight, WM_CONFIG2);
    90   this->weaponMan->addWeapon(wpLeft, WM_CONFIG2);*/
     82  Weapon* wpRight = new TestGun(0);
     83  wpRight->setName("testGun Right");
     84  Weapon* wpLeft = new TestGun(1);
     85  wpLeft->setName("testGun Left");
     86
     87  this->weaponMan->addWeapon(wpLeft, 1, 0);
     88  this->weaponMan->addWeapon(wpRight,1 ,1);
     89  this->weaponMan->addWeapon(wpLeft, 3, 1);
     90
     91  this->weaponMan->changeWeaponConfig(0);
    9192}
    9293
     
    107108
    108109
    109   this->weaponMan = new WeaponManager(2);
     110  this->weaponMan = new WeaponManager(this);
     111  this->weaponMan->setSlotPosition(0, Vector(-2.6, .1, -3.0));
     112  this->weaponMan->setSlotPosition(1, Vector(-2.6, .1, 3.0));
     113
    110114}
    111115
Note: See TracChangeset for help on using the changeset viewer.