|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.game.DelayedTimerListener
public abstract class DelayedTimerListener
Adapter for the ITimerListener interface that notifies every time a specific duration of time has passed.
Constructor Summary | |
---|---|
DelayedTimerListener(double delay)
Creates a DelayedTimerListener that will notify every time delay seconds of time have passed. |
Method Summary | |
---|---|
abstract void |
onTimerTick()
Called every time the duration determined by the delay value used to construct this object passes. |
void |
onTimerTick(double delay)
Implementation of ITimerListener method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelayedTimerListener(double delay)
delay
- The duration in seconds that must pass between notifications.Method Detail |
---|
public void onTimerTick(double delay)
onTimerTick
in interface ITimerListener
delay
- The duration since the last timer tick in seconds.public abstract void onTimerTick()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |