- Timestamp:
- Dec 10, 2008, 5:30:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSlot.cc
r2327 r2391 73 73 void WeaponSlot::XMLPort(Element& xmlelement, XMLPort::Mode mode) 74 74 { 75 75 SUPER(WeaponSlot, XMLPort, xmlelement, mode); 76 76 } 77 77 78 void WeaponSlot::attachWeapon(Weapon *weaponPointer) 79 { this->attachedWeapon_ = weaponPointer; } 78 void WeaponSlot::attachWeapon(Weapon *weapon) 79 { 80 this->attachedWeapon_ = weapon; 81 this->attach(weapon); 82 COUT(0) << "WeaponSlot::attachWeapon position=" << this->getWorldPosition() << std::endl; 83 } 80 84 81 85 Weapon * WeaponSlot::getAttachedWeapon() const
Note: See TracChangeset
for help on using the changeset viewer.