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

public class DoubleCombBlock extends Block{
	//Overview: A DoubleCombBlock is a changable color block.
	// When the hp changes its value, the block changes its look.

	public DoubleCombBlock(){
		super(true,3,Color.red);
	}
	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(getColor());
			g.fillRect(x+1,y+1,w/2-2,h-2);
				
		switch(hp){
		case 0:
			g.setColor(Color.blue);
			break;
		case 1:
			g.setColor(Color.blue);
			g.fillRect(x,y,w-1,h-1);
			g.setColor(getColor());
			g.fillRect(x+1,y+1,w/3-3,h-3);
			g.fillRect(x+w/3+w/3,y+1,w/3-2,h-2);
			break;
		case 2:
			g.setColor(getColor());
			g.fillRect(x+1,y+1,w/2-2,h/2-2);
			g.fillRect(x+w/2,y+h/2,w/2-2,h/2-2);
			break;
	
		}
	
	}
}