Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2005, 4:59:16 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: the activation and deactivation-phase of the Weapon work too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapons/weapon_manager.cc

    r4909 r4926  
    3434 * @param number of weapon slots of the model/ship <= 8 (limitied)
    3535 */
    36 WeaponManager::WeaponManager(int nrOfSlots)
     36WeaponManager::WeaponManager(int slotCount)
    3737{
    3838  this->init();
    39   this->nrOfSlots = nrOfSlots;
     39  this->slotCount = slotCount;
    4040}
    4141
     
    127127/**
    128128 * sets the number of Slots the WeaponManager has
    129  * @param nrOfSlots the number of slots
    130  */
    131 void WeaponManager::setSlotCount(int nrOfSlots)
    132 {
    133   this->nrOfSlots = nrOfSlots;
     129 * @param slotCount the number of slots
     130 */
     131void WeaponManager::setSlotCount(int slotCount)
     132{
     133  this->slotCount = slotCount;
    134134}
    135135
     
    150150  {
    151151    int freeSlot = this->getNextFreeSlot( configID);
    152     if( freeSlot < 0 || freeSlot >= this->nrOfSlots)
     152    if( freeSlot < 0 || freeSlot >= this->slotCount)
    153153    {
    154154      PRINTF(0)("There is no free slot in this WeaponConfig to dock this weapon at! Aborting\n");
     
    262262  {
    263263    w = this->configs[j].slots[i];
    264     if( w != NULL)// && w->isVisible())
     264    if( w != NULL && w->isVisible())
    265265      w->draw();
    266266  }
Note: See TracChangeset for help on using the changeset viewer.