Class ClockTickTimer
- java.lang.Object
-
- ch.sahits.game.openpatrician.utilities.service.Timer
-
- ch.sahits.game.openpatrician.engine.ClockTickTimer
-
public class ClockTickTimer extends ch.sahits.game.openpatrician.utilities.service.TimerThis clock ticking timer extends the pausable timer.- Author:
- Andi Hotz, (c) Sahits GmbH, 2015 Created on Sep 07, 2015
-
-
Constructor Summary
Constructors Constructor Description ClockTickTimer(long interval, long duration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandlePause(ch.sahits.game.event.data.PauseGame event)voidhandleResume(ch.sahits.game.event.data.ResumeGame event)protected voidonFinish()protected voidonTick()voidtick()Update the time by one tick.
-
-
-
Method Detail
-
onTick
protected void onTick()
- Specified by:
onTickin classch.sahits.game.openpatrician.utilities.service.Timer
-
onFinish
protected void onFinish()
- Specified by:
onFinishin classch.sahits.game.openpatrician.utilities.service.Timer
-
tick
public void tick()
Update the time by one tick.
-
handlePause
public void handlePause(ch.sahits.game.event.data.PauseGame event)
-
handleResume
public void handleResume(ch.sahits.game.event.data.ResumeGame event)
-
-