package menus;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;

public class Fin extends Menu{
	float contador=0;
	@Override
	public int draw(SpriteBatch batch, float delta) {
		try {
			Thread.sleep(400);
			Menu.menus.get(BATTLE).draw(batch, 0);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		if(contador>7) {
			Menu.menus.remove(Menu.BATTLE);
			this.contador=0;
			return Menu.INICIAL;
		}else {
			contador++;
			return Menu.FINAL;
		}
		
		
	}
	
	@Override
	int darSeleccionado() {
		// TODO Auto-generated method stub
		return 0;
	}
	
}
