Starsector API
|
Public Member Functions | |
IntervalUtil (float minInterval, float maxInterval) | |
void | forceCurrInterval (float value) |
Random | getRandom () |
void | setRandom (Random random) |
void | randomize () |
void | forceIntervalElapsed () |
float | getElapsed () |
void | advance (float amount) |
boolean | intervalElapsed () |
float | getIntervalDuration () |
void | setInterval (float min, float max) |
void | setElapsed (float elapsed) |
float | getMinInterval () |
float | getMaxInterval () |
Definition at line 5 of file IntervalUtil.java.
Definition at line 16 of file IntervalUtil.java.
Definition at line 59 of file IntervalUtil.java.
Definition at line 20 of file IntervalUtil.java.
void com.fs.starfarer.api.util.IntervalUtil.forceIntervalElapsed | ( | ) |
Definition at line 40 of file IntervalUtil.java.
float com.fs.starfarer.api.util.IntervalUtil.getElapsed | ( | ) |
Definition at line 45 of file IntervalUtil.java.
float com.fs.starfarer.api.util.IntervalUtil.getIntervalDuration | ( | ) |
Definition at line 78 of file IntervalUtil.java.
float com.fs.starfarer.api.util.IntervalUtil.getMaxInterval | ( | ) |
Definition at line 96 of file IntervalUtil.java.
float com.fs.starfarer.api.util.IntervalUtil.getMinInterval | ( | ) |
Definition at line 92 of file IntervalUtil.java.
Random com.fs.starfarer.api.util.IntervalUtil.getRandom | ( | ) |
Definition at line 24 of file IntervalUtil.java.
boolean com.fs.starfarer.api.util.IntervalUtil.intervalElapsed | ( | ) |
Returns true once and only once when the current interval is over. Must be called every frame, otherwise the time it returns true might be missed.
Definition at line 74 of file IntervalUtil.java.
void com.fs.starfarer.api.util.IntervalUtil.randomize | ( | ) |
Definition at line 32 of file IntervalUtil.java.
Definition at line 88 of file IntervalUtil.java.
Definition at line 82 of file IntervalUtil.java.
Definition at line 28 of file IntervalUtil.java.