import java.awt.*;
import java.util.*;

public class GTURT{
  int x, y;
  GSHELL shells[] = new GSHELL[6];

  GTURT(int a, int b){
    x=a;
    y=b;
    setShells();
  }
  
  public void setShells(){
    int yinc=18;
    for(int i=0; i<shells.length; i++){
      shells[i]=new GSHELL(x+5+i*7,y-i*yinc,22-i*2);
      yinc--;
    }
  } 
  
  public void draw(Graphics g){
    g.setColor(Color.black);
     //tail
    int c[] = {x+15,x+32,x+16,x-8,x+11,x+15 };
    int d[] = {y+3,y+3,y+14,y+17,y+8,y+3 };
    Polygon tail = new Polygon(c,d,c.length);
    g.fillPolygon(tail);
    //back leg
    int bx[]={x+50,x+60,x+70,x+40,x+50};
    int by[]={y+3,y+3,y+22,y+22,y+3};
    Polygon backleg=new Polygon(bx,by,bx.length);
    g.fillPolygon(backleg);    
    //front leg
    int fx[]={x+110,x+120,x+130,x+100,x+110};
    int fy[]={y+3,y+3,y+22,y+22,y+3};
    Polygon frontleg=new Polygon(fx,fy,fx.length);
    g.fillPolygon(frontleg);    
    //head
    int hx[]={x+140,x+165,x+175,x+190,x+200,x+190,x+175,x+165,x+150,x+140};
    int hy[]={y+3,y+3,y-18,y-18,y+3,y+17,y+17,y+12,y+12,y+3};
    Polygon head=new Polygon(hx,hy,hx.length);
    g.fillPolygon(head);    
    g.setColor(new Color(120, 120, 120));
     //tail2
    int c2[] = {x+16,x+27,x+15,x-1,x+14,x+16 };
    int d2[] = {y+5,y+5,y+12,y+15,y+9,y+5 };
    Polygon tail2 = new Polygon(c2,d2,c2.length);
    g.fillPolygon(tail2);
    //back leg2
    int bx2[]={x+52,x+58,x+67,x+43,x+52};
    int by2[]={y+5,y+5,y+20,y+20,y+5};
    Polygon backleg2=new Polygon(bx2,by2,bx2.length);
    g.fillPolygon(backleg2);    
    //front leg2
    int fx2[]={x+112,x+118,x+127,x+103,x+112};
    int fy2[]={y+5,y+5,y+20,y+20,y+5};
    Polygon frontleg2=new Polygon(fx2,fy2,fx2.length);
    g.fillPolygon(frontleg2);    
    //head2
    int hx2[]={x+145,x+167,x+177,x+188,x+197,x+188,x+177,x+167,x+152,x+145};
    int hy2[]={y+5,y+5,y-16,y-16,y+3,y+15,y+15,y+10,y+10,y+5};
    Polygon head2=new Polygon(hx2,hy2,hx2.length);
    g.fillPolygon(head2);    
    g.setColor(Color.black);
    g.fillOval(x+186,y-8,5,5);
    g.drawLine(x+194,y+12,x+185,y+8);
    g.drawLine(x+194,y+13,x+185,y+9);
    for(int i=0; i<shells.length; i++){
      shells[i].draw(g);
    }
  }
}
