Changeset 10672 in orxonox.OLD for branches/vs-enhencements/src/world_entities/weapons
- Timestamp:
- Jun 5, 2007, 11:01:09 PM (18 years ago)
- Location:
- branches/vs-enhencements/src/world_entities/weapons
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/weapons/weapon_manager.cc
r10669 r10672 35 35 /** 36 36 * @brief this initializes the weaponManager for a given nnumber of weapon slots 37 * @param number of weapon slots of the model/ship <= 8(limitied)37 * @param number of weapon slots of the model/ship <= 10 (limitied) 38 38 */ 39 39 WeaponManager::WeaponManager(WorldEntity* parent) -
branches/vs-enhencements/src/world_entities/weapons/weapon_slot.cc
r10669 r10672 57 57 LoadParam(root, "slot", this, WeaponSlot, setWeaponConfig) 58 58 .describe("sets the weapon slot"); 59 60 LoadParam(root, "currentWeapon", this, WeaponSlot, setCurrentWeapon) 61 .describe("creates and set next weapon"); 62 63 LoadParam(root, "nextWeapon", this, WeaponSlot, setNextWeapon) 64 .describe("creates and set next weapon"); 59 65 } 60 66 -
branches/vs-enhencements/src/world_entities/weapons/weapon_slot.h
r10534 r10672 8 8 9 9 #include "p_node.h" 10 10 #include "weapon.h" 11 11 12 12 class Weapon; … … 36 36 inline void setNextWeapon(Weapon* weapon) { this->nextWeapon = weapon; } 37 37 38 inline void setNextWeapon(const std::string& weaponName){this->nextWeapon = Weapon::createWeapon(weaponName); }; 39 inline void setCurrentWeapon(const std::string& weaponName){ this->currentWeapon = Weapon::createWeapon(weaponName); }; 40 38 41 39 42 inline void setWeaponConfig(int slot, int side) { this->weaponSlot = slot; this->weaponSide = side; }
Note: See TracChangeset
for help on using the changeset viewer.