Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2016, 4:47:39 PM (9 years ago)
Author:
sagerj
Message:

everything beneath weaponmode changed to push/release - wm modified only need to implement timer/ticker

File:
1 edited

Legend:

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

    r11170 r11174  
    168168    }
    169169
     170    bool WeaponMode::push(float* reloadTime)
     171    {
     172        if( this->chargeable_)
     173        {
     174            // setting up a timer for knowing how long the weapon was charged
     175            // and passes the value to this->cTime_
     176        } else {
     177            return fire(reloadTime);
     178        }
     179       
     180    }
     181
    170182    bool WeaponMode::release(float* reloadTime)
    171183    {
    172         this->release();
    173         return false;
     184        if( this->chargeable_)
     185        {
     186            return fire(reloadTime);
     187        }
    174188    }
    175189
Note: See TracChangeset for help on using the changeset viewer.