|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.gamedata.VehiclePhysics.PhysicsSetting
public static class VehiclePhysics.PhysicsSetting
Abstraction of a usual physics setting (base_value, step_size, num_steps).
Method Summary | |
---|---|
float |
clampValue(float value)
Clamps the given value to the range of possible values in this physics setting. |
float |
getBaseValue()
The base value of this physics setting. |
float |
getMaxValue()
Gets the maximum value for this physics setting's range. |
float |
getMinValue()
Gets the minimum value for this physics setting's range. |
int |
getNumSteps()
Gets the number of steps for this setting. |
float |
getStepSize()
Gets the number size of each step for this setting. |
float |
getValueForSetting(int setting)
Gets the value for the given setting. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public final float getBaseValue()
getStepSize()
and getNumSteps()
add to it up to the getMaxValue()
.
public final float getStepSize()
public final int getNumSteps()
public final float getMinValue()
public final float getMaxValue()
public final float getValueForSetting(int setting)
setting
- the setting to get the value for
public final float clampValue(float value)
value
- the value to be clamped.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |