Package com.fs.starfarer.api.util
Class ValueShifterUtil
java.lang.Object
com.fs.starfarer.api.util.ValueShifterUtil
- All Implemented Interfaces:
ValueShifterAPI
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
protected float
protected float
protected Map<Object,
ValueShifterUtil.ShiftData2> protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) float
float
getBase()
float
getCurr()
float
getShiftProgress
(Object key) boolean
boolean
static void
void
setBase
(float base) void
setUseSquareOfProgress
(boolean useSquareOfProgress) void
Durations are in seconds, NOT days.protected void
-
Field Details
-
base
protected float base -
curr
protected float curr -
useSquareOfProgress
protected boolean useSquareOfProgress -
averageShift
protected transient float averageShift -
data
-
-
Constructor Details
-
ValueShifterUtil
public ValueShifterUtil(float base)
-
-
Method Details
-
isUseSquareOfProgress
public boolean isUseSquareOfProgress() -
setUseSquareOfProgress
public void setUseSquareOfProgress(boolean useSquareOfProgress) -
isShifted
public boolean isShifted() -
getBase
public float getBase()- Specified by:
getBase
in interfaceValueShifterAPI
-
setBase
public void setBase(float base) - Specified by:
setBase
in interfaceValueShifterAPI
-
getCurr
public float getCurr()- Specified by:
getCurr
in interfaceValueShifterAPI
-
shift
Description copied from interface:ValueShifterAPI
Durations are in seconds, NOT days.- Specified by:
shift
in interfaceValueShifterAPI
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceValueShifterAPI
-
updateCurr
protected void updateCurr() -
getAverageShift
public float getAverageShift() -
getShiftProgress
-
main
-