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

public class Smiley extends Block{
	//Overview: Smiley is a changable color face.
	//If the hp changes its value, the block changes its smile.
			
	public Smiley(){
		super(true,3,new Color(255,0,255));
	}
	
	public void drawImage(Graphics g, int x, int y, int w, int h){
		g.setColor(Color.yellow);
		g.fillOval(x,y,w-1,h-1);
		g.setColor(Color.black);
		g.drawOval(x,y,w-1,h-1);
		g.setColor(Color.black);
		g.fillOval(x+w/5,y+w/4,w/5,h/5);
		g.fillOval(x+w/5+w/5+w/5,y+w/4,w/5,h/5);
		//draw mouth
		switch(hp){
			case 0:
				g.setColor(Color.black);
			//	g.drawArc(x+w/8,y+h/8,6*w/8,6*h/8,200,140);
			//	count++;
				break;
			case 1:
				g.setColor(Color.black);
				g.drawArc(x+w/8,y+5*h/8,3*w/4,3*h/4,45,90);
				break;	
		
			case 2:
				g.setColor(Color.black);
				g.fillRect(x+w/4,y+3*h/4,w/2,1);
				break;
				
			case 3:
				g.setColor(Color.black);
				g.drawArc(x+w/8,y+h/8,6*w/8,6*h/8,200,140);
				break;
		}
	}

}