
public class Wait_count implements Runnable{
	private int wait_count;
	private Block_Break bb;
	private Field field;
	public Wait_count(Block_Break bb,Field field){
		this.bb = bb;
		this.field = field;
		wait_count = 3;
	}
	public void run() {
		// TODO 自動生成されたメソッド・スタブ
		while(wait_count > 0){
			try{
				Thread.sleep(1000);
				wait_count = wait_count - 1;
			}catch(InterruptedException e){
			}
		}
		bb.setWaitFlg(false);
		Ball ball = field.getBall();
		ball.setInitIndex();
		Bar bar = field.getBar();
		bar.setInit();
		ball.restart_ball();
	}
}
