import java.awt.Color;
import java.awt.Graphics;

public class BlueBlock extends Block{
	//Overview: A BlueBlock is a changable color block.
	//Effects: If the hp changes its value, the block changes its color.
		
	public BlueBlock(){
		super(true,3);
		
	}
	public void drawImage(Graphics g, int x, int y, int w, int h){
		g.setColor(Color.blue);
		g.fillRect(x,y,w-1,h-1);
		g.setColor(Color.black);
		g.drawString("BOOM!",x+1,y+2*h/3);
		g.setColor(Color.black);
		switch(hp){
		case 0:
			g.setColor(getColor());
			break;
		case 1:
			g.setColor(Color.white);
			g.drawString("CRASH!",x+1,y+2*h/3);
			break;
		case 2:
			g.setColor(Color.red);
			g.drawString("BANG!",x+1,y+2*h/3);
			break;
		case 3:
			g.setColor(Color.blue);
			
			break;	
		}
	
	}
}