Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 12, 2008, 4:45:50 PM (17 years ago)
Author:
polakma
Message:

added munition, fixed reloadTimer_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSystem.cc

    r2186 r2203  
    5252        this->activeWeaponSet_ = 0;
    5353        this->parentSpaceShip_ = 0;
    54         this->attachedMunition_ =0;
    5554    }
    5655
     
    6463        wSet->setParentWeaponSystem(this);
    6564    }
     65
     66    void WeaponSystem::setNewMunition(std::string munitionType, Munition * munitionToAdd)
     67    {
     68        this->munitionSet_[munitionType] = munitionToAdd;
     69    }
     70    Munition * WeaponSystem::getMunitionType(std::string munitionType)
     71    {
     72        return this->munitionSet_[munitionType];
     73    }
     74
    6675
    6776/*
     
    98107    }
    99108
    100     Munition * WeaponSystem::getAttachedMunitionPointer()
    101     {
    102         return this->attachedMunition_;
    103     }
    104 
    105     void WeaponSystem::addMunitionType(Munition *munitionPointer)
    106     {
    107 
    108 
    109         if (munitionPointer != NULL)  //gewährleiste, dass munitionPointer auf etwas sinnvolles zeigt
    110             this->attachedMunition_ = munitionPointer;
    111         else
    112             ;//was?
    113 
    114     }
    115 
    116 
    117109}
Note: See TracChangeset for help on using the changeset viewer.