- Timestamp:
- Nov 19, 2008, 7:07:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSlot.cc
r2203 r2232 52 52 } 53 53 54 void WeaponSlot::attachWeapon(Weapon *weaponPointer)55 {56 this->attachedWeapon_ = weaponPointer;57 }58 59 54 60 55 /*sets the munition type … … 67 62 } 68 63 64 69 65 void WeaponSlot::fire() 70 66 { … … 72 68 } 73 69 70 71 //XMLPort functions 74 72 void WeaponSlot::XMLPort(Element& xmlelement, XMLPort::Mode mode) 75 73 { 76 74 SUPER(WeaponSlot, XMLPort, xmlelement, mode); 75 XMLPortObject(WeaponSlot, Weapon, "attached-weapon", attachWeapon, getAttachedWeapon, xmlelement, mode); 77 76 } 78 77 78 void WeaponSlot::attachWeapon(Weapon *weaponPointer) 79 { this->attachedWeapon_ = weaponPointer; } 80 81 Weapon * WeaponSlot::getAttachedWeapon(unsigned int index) const 82 { return this->attachedWeapon_; } 83 84 79 85 }
Note: See TracChangeset
for help on using the changeset viewer.