Changeset 4926 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/weapon_manager.cc
- Timestamp:
- Jul 21, 2005, 4:59:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/weapon_manager.cc
r4909 r4926 34 34 * @param number of weapon slots of the model/ship <= 8 (limitied) 35 35 */ 36 WeaponManager::WeaponManager(int nrOfSlots)36 WeaponManager::WeaponManager(int slotCount) 37 37 { 38 38 this->init(); 39 this-> nrOfSlots = nrOfSlots;39 this->slotCount = slotCount; 40 40 } 41 41 … … 127 127 /** 128 128 * sets the number of Slots the WeaponManager has 129 * @param nrOfSlotsthe number of slots130 */ 131 void WeaponManager::setSlotCount(int nrOfSlots)132 { 133 this-> nrOfSlots = nrOfSlots;129 * @param slotCount the number of slots 130 */ 131 void WeaponManager::setSlotCount(int slotCount) 132 { 133 this->slotCount = slotCount; 134 134 } 135 135 … … 150 150 { 151 151 int freeSlot = this->getNextFreeSlot( configID); 152 if( freeSlot < 0 || freeSlot >= this-> nrOfSlots)152 if( freeSlot < 0 || freeSlot >= this->slotCount) 153 153 { 154 154 PRINTF(0)("There is no free slot in this WeaponConfig to dock this weapon at! Aborting\n"); … … 262 262 { 263 263 w = this->configs[j].slots[i]; 264 if( w != NULL )//&& w->isVisible())264 if( w != NULL && w->isVisible()) 265 265 w->draw(); 266 266 }
Note: See TracChangeset
for help on using the changeset viewer.