import java.awt.*;

public class Car extends Vehicle
{
	public Car(int xp, int yp, Color c) {
		super(xp,yp, c);
	}

	public void paint(Graphics g) {
		int width = 20;
		int height = 30;

		g.setColor(col);

		// outline
		g.fillRect(x,y,width,height);

		g.setColor(Color.BLACK);
		// wheels
		g.fillRect(x-3,y+3,3,8);
		g.fillRect(x+width,y+3,3,8);

		g.fillRect(x-3,y+height-6,3,8);
		g.fillRect(x+width,y+height-6,3,8);

	}

}

