Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2016, 3:33:48 PM (9 years ago)
Author:
sagerj
Message:

running backup

Location:
code/branches/sagerjFS16/src/orxonox/weaponsystem
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/Weapon.cc

    r11166 r11170  
    114114        // Note: The reloading of each WeaponMode is internally handled by each A, B and C.
    115115        //       The reloading of the weapon is only performed to avoid firing with different modes at the same time.
    116         orxout() << "fire weapon " << mode << endl;
     116   
     117   
    117118        if (this->bReloading_ && this->reloadingWeaponmode_ != mode)
    118119            return;
     
    137138    void Weapon::release(unsigned int mode)
    138139    {
    139         orxout() << "release weapon " << mode << endl;
    140140        if (this->bReloading_ && this->reloadingWeaponmode_ != mode)
    141141            return;
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponMode.cc

    r11166 r11170  
    121121    {
    122122        (*reloadTime) = this->reloadTime_;
    123         orxout() << "fire wm " << reloadTime << endl;
    124123        // Fireing is only possible if this weapon mode is not reloading and there is enough munition
    125124        if (!this->bReloading_ && this->munition_ && this->munition_->takeMunition(this->munitionPerShot_, this))
     
    171170    bool WeaponMode::release(float* reloadTime)
    172171    {
    173         orxout() << "release wm " << reloadTime << endl;
     172        this->release();
    174173        return false;
    175174    }
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponMode.h

    r11166 r11170  
    165165
    166166            virtual void fire() = 0;
     167            virtual void release() {};
    167168
    168169            unsigned int initialMunition_;
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponPack.cc

    r11166 r11170  
    7676    void WeaponPack::fire(unsigned int weaponmode)
    7777    {
    78         orxout() << "fire wp " << weaponmode << endl;
    7978        for (Weapon* weapon : this->weapons_)
    8079            weapon->fire(weaponmode);
     
    8382    void WeaponPack::release(unsigned int weaponmode)
    8483    {
    85         orxout() << "release wp " << weaponmode << endl;
    8684        for (Weapon* weapon : this->weapons_)
    8785            weapon->release(weaponmode);
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponSet.cc

    r11166 r11170  
    6363    {
    6464        // Fire all WeaponPacks with their defined weaponmode
    65         orxout() << "fire wset " << endl;
    6665        for (const auto& mapEntry : this->weaponpacks_)
    6766            if (mapEntry.second != WeaponSystem::WEAPON_MODE_UNASSIGNED)
     
    7271    {
    7372        // Fire all WeaponPacks with their defined weaponmode
    74         orxout() << "release wset " << endl;
    7573        for (const auto& mapEntry : this->weaponpacks_)
    7674            if (mapEntry.second != WeaponSystem::WEAPON_MODE_UNASSIGNED)
  • code/branches/sagerjFS16/src/orxonox/weaponsystem/WeaponSystem.cc

    r11166 r11170  
    289289    void WeaponSystem::fire(unsigned int firemode)
    290290    {
    291         orxout() << "fire wsys " << firemode << endl;
    292291        std::map<unsigned int, WeaponSet *>::iterator it = this->weaponSets_.find(firemode);
    293292        if (it != this->weaponSets_.end() && it->second)
     
    297296    void WeaponSystem::release(unsigned int firemode)
    298297    {
    299         orxout() << "release wsys " << firemode << endl;
    300298        std::map<unsigned int, WeaponSet *>::iterator it = this->weaponSets_.find(firemode);
    301299        if (it != this->weaponSets_.end() && it->second)
Note: See TracChangeset for help on using the changeset viewer.