|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.gamedata.VehiclePhysics.Engine
public static class VehiclePhysics.Engine
Model of engine physics parameters.
Method Summary | |
---|---|
int |
getBadLifetimeTotal(double raceLengthMultiplier)
Gets the total lifetime seconds of the barrier, where the engine is in really bad shape. |
float |
getBaseLifetimeOilTemperature()
Gets the base temperature for engine life time in the units selected in the PLR. |
float |
getBaseLifetimeOilTemperatureC()
Gets the base temperature for engine life time in °C. |
float |
getBaseLifetimeOilTemperatureF()
Gets the base temperature for engine life time in °F. |
float |
getBaseLifetimeRPM()
Gets RPM for 'normal' lifetime. |
VehiclePhysics.PhysicsSetting |
getBoostRange()
Gets the range of possible boost mappings. |
float |
getFuelUsageIncreasePerBoostLevel()
Gets the fuel usage increase per boost setting. |
int |
getGoodLifetimeTotal(double raceLengthMultiplier)
Gets the total lifetime in seconds, that the engine will most probably hold. |
float |
getHalfLifetimeOilTempOffset()
Gets the offset to the base oil temperature for engine life time, where life time is halfed in the units selected in the PLR. |
float |
getHalfLifetimeOilTempOffsetC()
Gets the offset to the base oil temperature for engine life time, where life time is halfed in °C. |
float |
getHalfLifetimeOilTempOffsetF()
Gets the offset to the base oil temperature for engine life time, where life time is halfed in °F. |
float |
getHalfLifetimeRPMOffset()
Gets the offset above the base RPM, where lifetime is halfed. |
int |
getHighestBoostLevel()
Gets the boost level with biggest boost. |
int |
getLifetimeAverage(double raceLengthMultiplier)
Gets the average lifetime for the given rance length in seconds. |
int |
getLifetimeVariance(double raceLengthMultiplier)
Gets the variance of lifetime for the given rance length in seconds. |
int |
getLifetimeVarianceHalfRange(double raceLengthMultiplier)
Gets the half size of the variance rance for engine lifetime in seconds. |
int |
getLifetimeVarianceRange(double raceLengthMultiplier)
Gets the size of the variance rance for engine lifetime in seconds. |
int |
getLowerBadLifetimeValue(double raceLengthMultiplier)
Gets the lower bound of lifetime values for the "bad" range. |
int |
getLowerGoodLifetimeValue(double raceLengthMultiplier)
Gets the lower bound of lifetime values for the "good" range. |
int |
getLowerSafeLifetimeValue(double raceLengthMultiplier)
Gets the lower bound of lifetime values for the "safe" range (zero). |
int |
getLowestBoostLevel()
Gets the boost level with smallest boost. |
int |
getMaxLifetimeTotal(double raceLengthMultiplier)
Gets the maximum number of lifetime seconds, that the engine can possibly last. |
float |
getMaxRPM(float baseMaxRPM)
Gets the maximum RPM at the highest (valued) boost mapping. |
float |
getMaxRPM(float baseMaxRPM,
int boostLevel)
Gets the maximum RPM at the given boost level. |
int |
getMinLifetimeValue(double raceLengthMultiplier)
Gets the smalles lifetime value, that your engine can possibly have. |
java.lang.String |
getName()
Gets the engine's name. |
float |
getOptimumOilTemperature()
Gets the optimum oil temperature in the units selected in the PLR. |
float |
getOptimumOilTemperatureC()
Gets the optimum oil temperature in Celsius. |
float |
getOptimumOilTemperatureF()
Gets the optimum oil temperature in Fahrenheit. |
float |
getOverheatingOilTemperature()
Gets the temperature value in the units selected in the PLR, at which the engine starts to overheat. |
float |
getOverheatingOilTemperatureC()
Gets the temperature value in Celsius at which the engine starts to overheat. |
float |
getOverheatingOilTemperatureF()
Gets the temperature value in Fahrenheit at which the engine starts to overheat. |
VehiclePhysics.PhysicsSetting |
getRevLimitRange()
Gets the range of possible max revs. |
float |
getRPMIncreasePerBoostLevel()
Gets the rev limit increase per boost setting. |
int |
getSafeLifetimeTotal(double raceLengthMultiplier)
Gets the total lifetime in seconds, that the engine will last for sure. |
float |
getStrongOverheatingOilTemperature()
Gets a strong overheating engine temperature in the units selected in the PLR. |
float |
getStrongOverheatingOilTemperatureC()
Gets a strong overheating engine temperature in Celsius. |
float |
getStrongOverheatingOilTemperatureF()
Gets a strong overheating engine temperature in Fahrenheit. |
float |
getWearIncreasePerBoostLevel()
Gets the engine wear increase per boost setting. |
float |
getWearIncreasePerDegreeC()
Gets the engine wear increase per °C obove the optimum temperature. |
float |
getWearIncreasePerVelocity()
Gets the engine wear increase per km/h. |
boolean |
hasLifetimeVariance()
Gets, whether this engine has a lifetime variance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final java.lang.String getName()
public final int getLifetimeAverage(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final int getLifetimeVariance(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final boolean hasLifetimeVariance()
public final int getSafeLifetimeTotal(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final int getGoodLifetimeTotal(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final int getBadLifetimeTotal(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final int getMaxLifetimeTotal(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final int getLowerSafeLifetimeValue(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final int getLowerGoodLifetimeValue(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final int getLowerBadLifetimeValue(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final int getMinLifetimeValue(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final int getLifetimeVarianceRange(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final int getLifetimeVarianceHalfRange(double raceLengthMultiplier)
raceLengthMultiplier
- the fraction of race length
public final float getBaseLifetimeOilTemperatureC()
public final float getBaseLifetimeOilTemperatureF()
public final float getBaseLifetimeOilTemperature()
public final float getHalfLifetimeOilTempOffsetC()
public final float getHalfLifetimeOilTempOffsetF()
public final float getHalfLifetimeOilTempOffset()
public final float getOptimumOilTemperatureC()
public final float getOptimumOilTemperatureF()
public final float getOptimumOilTemperature()
public final float getOverheatingOilTemperatureC()
public final float getOverheatingOilTemperatureF()
public final float getOverheatingOilTemperature()
public final float getStrongOverheatingOilTemperatureC()
public final float getStrongOverheatingOilTemperatureF()
public final float getStrongOverheatingOilTemperature()
public final float getWearIncreasePerDegreeC()
public final float getBaseLifetimeRPM()
getHalfLifetimeRPMOffset()
public final float getHalfLifetimeRPMOffset()
getBaseLifetimeRPM()
public final VehiclePhysics.PhysicsSetting getRevLimitRange()
VehicleSetup.Engine.getRevLimitSetting()
,
VehicleSetup.Engine.getRevLimit()
public final VehiclePhysics.PhysicsSetting getBoostRange()
VehicleSetup.Engine.getBoostMapping()
public final float getRPMIncreasePerBoostLevel()
public final float getFuelUsageIncreasePerBoostLevel()
public final float getWearIncreasePerBoostLevel()
public final float getWearIncreasePerVelocity()
public final float getMaxRPM(float baseMaxRPM, int boostLevel)
baseMaxRPM
- maxRPM coming from TelemetryData.getEngineBaseMaxRPM()
boostLevel
- coming from TelemetryData.getEngineBoostMapping()
public final float getMaxRPM(float baseMaxRPM)
baseMaxRPM
- maxRPM coming from TelemetryData.getEngineBaseMaxRPM()
public final int getLowestBoostLevel()
public final int getHighestBoostLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |