Changeset 10660 in orxonox.OLD for branches/vs-enhencements/src/world_entities
- Timestamp:
- May 24, 2007, 12:05:40 AM (18 years ago)
- Location:
- branches/vs-enhencements/src/world_entities/space_ships
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/space_ships/space_ship.cc
r10659 r10660 188 188 Weapon* wpLeft3 = new Disruptor (); 189 189 wpLeft3->setName( "Disruptor"); 190 191 /* 192 Weapon* wpRight3 = Weapon::createWeapon( "Disruptor" ); 193 wpRight3->setName( "Disruptor"); 194 Weapon* wpLeft3 = Weapon::createWeapon( "Disruptor" ); 195 wpLeft3->setName( "Disruptor");*/ 190 196 191 197 Weapon* cannon = new SwarmLauncher(); … … 310 316 311 317 this->weaponMan.setSlotCount(8); 312 318 /* 313 319 this->weaponMan.setSlotPosition(0, Vector(3.006, 1.028, .155)); 314 320 this->weaponMan.setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); … … 333 339 334 340 this->weaponMan.setSlotPosition(7, Vector(1.431, -.612, -3.254)); 335 this->weaponMan.setSlotDirection(7, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0))); 336 341 this->weaponMan.setSlotDirection(7, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0)));*/ 342 343 this->createPriWMSlot(0, Vector(3.006, 1.028, .155), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 344 this->createPriWMSlot(1, Vector(3.006, 1.028, -.155), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 345 this->createPriWMSlot(2, Vector(4.03, .063, .876), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 346 this->createPriWMSlot(3, Vector(4.03, -.063, -.876), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 347 this->createPriWMSlot(4, Vector(1.431, -.612, 2.691), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 348 this->createPriWMSlot(5, Vector(1.431, -.612, -2.691), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 349 this->createPriWMSlot(6, Vector(1.431, -.612, 3.254), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 350 this->createPriWMSlot(7, Vector(1.431, -.612, -3.254), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 351 352 this->secWeaponMan.setSlotCount(6); 353 /* 337 354 this->secWeaponMan.setSlotPosition(0, Vector(1.5, 3, 0)); 338 355 this->secWeaponMan.setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); … … 351 368 352 369 this->secWeaponMan.setSlotPosition(5, Vector(1.5, 0, -.5)); 353 this->secWeaponMan.setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0))); 370 this->secWeaponMan.setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0)));*/ 371 372 this->createSecWMSlot(0, Vector(1.5, 3, 0), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 373 this->createSecWMSlot(1, Vector(2.6, 0, 3.0), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 374 this->createSecWMSlot(2, Vector(1.5, 0, -.5), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 375 this->createSecWMSlot(3, Vector(1.5, 0, .5), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 376 this->createSecWMSlot(4, Vector(1.5, 0, .5), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 377 this->createSecWMSlot(5, Vector(1.5, 0, -.5), WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 354 378 355 379 -
branches/vs-enhencements/src/world_entities/space_ships/space_ship.h
r10659 r10660 63 63 inline WeaponManager& getWeaponManagerSecondary() { return this->secWeaponMan; }; 64 64 65 //!< functions for XML loading 65 66 inline void setReactor(float output) {this->reactorOutput = output; }; 66 67 inline void setShield(float cur, float max, float th, float regen) … … 81 82 inline void updateHealth() { this->setHealth(this->armorCur); this->setHealthMax(this->armorMax); }; 82 83 84 inline void setPriWM(int slot) { this->weaponMan.setSlotCount(slot); }; 85 inline void setSecWM(int slot) { this->secWeaponMan.setSlotCount(slot); }; 86 inline void createPriWMSlot( int slot, Vector location, long capability) { 87 this->weaponMan.setSlotPosition(slot, location); 88 this->weaponMan.setSlotCapability(slot, capability); }; 89 inline void createSecWMSlot( int slot, Vector location, long capability) { 90 this->secWeaponMan.setSlotPosition(slot, location); 91 this->secWeaponMan.setSlotCapability(slot, capability); }; 83 92 //Functions for GUI 84 93 inline float getShieldCur() { return this->shieldCur; }; //!< returns current shield value
Note: See TracChangeset
for help on using the changeset viewer.