public class TickTimer extends java.lang.Object implements ITickTimer
Constructor and Description |
---|
TickTimer(int ticksPerCycle,
int maxValue,
boolean countDown) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxValue() |
int |
getValue() |
static int |
getValue(long startTime,
long currentTime,
int maxValue,
int msPerCycle,
boolean countDown) |
public int getValue()
getValue
in interface ITickTimer
public int getMaxValue()
getMaxValue
in interface ITickTimer
public static int getValue(long startTime, long currentTime, int maxValue, int msPerCycle, boolean countDown)