org.elkoserver.foundation.timer
Interface TickNoticer
public interface TickNoticer
Interface implemented by classes that want to be informed about repeated
ticks from a Clock. A Clock is created by calling the
Timer.every() method and passing it an object which
implements this TickNoticer interface. The noticeTick(int)
method of the TickNoticer object will be invoked periodically at
the indicated frequency.
- See Also:
Timer.every(),
Clock
|
Method Summary |
void |
noticeTick(int ticks)
Called by clocks on their targets after each tick. |
noticeTick
void noticeTick(int ticks)
- Called by clocks on their targets after each tick.
- Parameters:
ticks - Number of ticks since the calling clock was started.