package avs.models;

public class ZombieSummoner implements Runnable{
	private Thread thread;
	private boolean isHugeWave;

	public ZombieSummoner(){
		this.thread = new Thread(this);
	}

	public void run(){
		try {
            //Thread.sleep(30000);
            while (true) {
            	if(!isHugeWave){
            		Game.getInstance().createZombie();
               		Thread.sleep(1000);
            	}else{
            		Thread.sleep(3000);
            		for(int i = 0; i < 10; i++){
            			Game.getInstance().createZombie();
               			Thread.sleep(5000);
            		}
            		isHugeWave = false;
            	}
            }
        } catch (InterruptedException e) {
            System.out.println(e.getMessage());
            e.printStackTrace();
        }
	}

	public void start(){
		this.thread.start();
	}

	public void setIsHugeWave(boolean isHugeWave){
		this.isHugeWave = isHugeWave;
	}
}

@@ -225,10 +225,8 @@
     
-//
 Thre
@@ -382,16 +382,17 @@
 eep(1000
+0
 );%0A     

Revert ZombieSummoner.java