Changeset 5621 in orxonox.OLD for branches/world_entities/src/world_entities/player.cc
- Timestamp:
- Nov 17, 2005, 12:31:14 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/world_entities/src/world_entities/player.cc
r5576 r5621 26 26 #include "weapons/test_gun.h" 27 27 #include "weapons/turret.h" 28 #include "weapons/cannon.h" 28 29 29 30 #include "list.h" … … 45 46 { 46 47 this->init(); 47 48 //weapons:49 Weapon* wpRight = new TestGun(this->weaponMan, 0);50 Weapon* wpLeft = new TestGun(this->weaponMan, 1);51 52 this->weaponMan->addWeapon(wpRight);53 // this->weaponMan->addWeapon(wpLeft, WM_CONFIG1, WM_SLOT1);54 // this->weaponMan->addWeapon(wpRight, WM_CONFIG2);55 // this->weaponMan->addWeapon(wpLeft, WM_CONFIG2);56 48 } 57 49 … … 91 83 Weapon* wpLeft = new TestGun(this->weaponMan, 1); 92 84 wpLeft->setName("testGun Left"); 85 Weapon* cannon = new Cannon(this->weaponMan); 86 cannon->setName("BFG"); 93 87 94 88 this->weaponMan->addWeapon(wpLeft, 1, 0); 95 89 this->weaponMan->addWeapon(wpRight,1 ,1); 90 this->weaponMan->addWeapon(cannon, 0, 6); 91 96 92 //this->weaponMan->addWeapon(turret, 3, 0); 97 93 … … 133 129 134 130 this->weaponMan = new WeaponManager(this); 135 this->weaponMan->setSlotCount( 6);131 this->weaponMan->setSlotCount(7); 136 132 137 133 this->weaponMan->setSlotPosition(0, Vector(-2.6, .1, -3.0)); … … 153 149 this->weaponMan->setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0))); 154 150 // 155 // this->weaponMan->setSlotPosition(6, Vector(-2.0, 0.1, -2.0));156 // this->weaponMan->setSlotPosition(7, Vector(-2.0, 0.1, 2.0));157 //151 this->weaponMan->setSlotPosition(6, Vector(-1, 0.0, 0)); 152 this->weaponMan->setSlotCapability(6, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 153 // 158 154 // this->weaponMan->setSlotPosition(8, Vector(-2.5, -0.3, -2.0)); 159 155 // this->weaponMan->setSlotDirection(8, Quaternion(-M_PI, Vector(1,0,0)));
Note: See TracChangeset
for help on using the changeset viewer.