implemented all the good stuff in FlowOfTime.java
This commit is contained in:
		@@ -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);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user