|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.util.Delay
public class Delay
This class is a simple utility, that counts a given amount of time and reports the current state.
Nested Class Summary | |
---|---|
static class |
Delay.State
|
Constructor Summary | |
---|---|
Delay()
|
Method Summary | |
---|---|
Delay.State |
getState(ScoringInfo scoringInfo)
Gets the Delay 's current state. |
boolean |
isTimeUp(ScoringInfo scoringInfo)
Checks, whether the time's up for this Delay . |
void |
reset()
|
void |
start(ScoringInfo scoringInfo,
DelayProperty delay)
Starts the delay. |
void |
start(ScoringInfo scoringInfo,
float delaySeconds)
Starts the delay. |
void |
start(ScoringInfo scoringInfo,
long delayNanos)
Starts the delay. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Delay()
Method Detail |
---|
public void reset()
public void start(ScoringInfo scoringInfo, long delayNanos)
scoringInfo
- the ScoringInfo to take the start (current) time fromdelayNanos
- the nanos, this delay will run forpublic final void start(ScoringInfo scoringInfo, float delaySeconds)
scoringInfo
- the ScoringInfo to take the start (current) time fromdelaySeconds
- the seconds, this delay will run forpublic final void start(ScoringInfo scoringInfo, DelayProperty delay)
scoringInfo
- the ScoringInfo to take the start (current) time fromdelay
- the property to take the delay frompublic final Delay.State getState(ScoringInfo scoringInfo)
Delay
's current state.
scoringInfo
-
Delay
's current state.public final boolean isTimeUp(ScoringInfo scoringInfo)
Delay
.
scoringInfo
-
Delay
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |