implemented all the good stuff in FlowOfTime.java

This commit is contained in:
Kjistóf 2016-05-07 13:35:20 +02:00
parent f728bd4667
commit 446b2b57f3
1 changed files with 11 additions and 1 deletions

View File

@ -6,8 +6,18 @@ import java.util.TimerTask;
public class FlowOfTime extends Timer {
private TimerTask timeup;
private long gametime;
private Game game;
public void start() {
private class GameOver extends TimerTask {
@Override
public void run() {
game.stopGame();
}
}
public void start(long delay) {
schedule(new GameOver(), delay);
}
}