Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2014, 3:43:07 PM (9 years ago)
Author:
fvultier
Message:

Es wird nun angezeigt, wie lange ein item noch aktiv ist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickupsFS14/src/modules/jump/JumpShield.cc

    r10111 r10184  
    5252        RegisterObject(JumpShield);
    5353
    54         fuel_ = 7.0;
     54        initialFuel_ = 7.0;
     55        fuel_ = initialFuel_;
    5556        attachedToFigure_ = false;
    5657
     
    102103        attachedToFigure_ = figure_->StartShield(this);
    103104    }
     105
     106    float JumpShield::getFuelState()
     107    {
     108        return fuel_/initialFuel_;
     109    }
    104110}
Note: See TracChangeset for help on using the changeset viewer.