Package com.csse3200.game.services
Class InGameTime
java.lang.Object
com.csse3200.game.services.InGameTime
Manages the in-game time, which can be paused and resumed independently
of the global game time.
-
Constructor Details
-
InGameTime
public InGameTime()
-
-
Method Details
-
pause
public void pause()Pauses the in-game time. -
resume
public void resume()Resumes the in-game time. -
getTime
public long getTime()Returns the current in-game time in milliseconds.- Returns:
- the in-game time in milliseconds.
-
getDeltaTime
public long getDeltaTime()Returns the delta time between frames in milliseconds.- Returns:
- the delta time in milliseconds.
-