import java.awt.Shape;
import java.awt.geom.GeneralPath;

public class Kreuzung extends Straßen  


{
    
 
    public Kreuzung()
    {
    xPosition = 10;
    yPosition = 10;
    farbe = "schwarz";
    orientierung = 0;
    istSichtbar = false;
    breite = 550;
    tiefe = 550;
    }

   
  protected Shape gibAktuelleFigur()
  {
      GeneralPath  kreuzung= new GeneralPath();
      kreuzung.moveTo(xPosition+breite/3, yPosition);
      kreuzung.lineTo(xPosition+breite/3, yPosition+tiefe/3);
      kreuzung.lineTo(xPosition, yPosition+tiefe/3);
      kreuzung.moveTo(xPosition, yPosition+2*tiefe/3);
      kreuzung.lineTo(xPosition+breite/3, yPosition+2*tiefe/3);
      kreuzung.lineTo(xPosition+breite/3, yPosition+tiefe);
      kreuzung.moveTo(xPosition+2*breite/3,yPosition);
      kreuzung.lineTo(xPosition+2*breite/3, yPosition+tiefe/3);
      kreuzung.lineTo(xPosition+breite, yPosition+tiefe/3);
      kreuzung.moveTo(xPosition+breite, yPosition+2*tiefe/3);
      kreuzung.lineTo(xPosition+2*breite/3, yPosition+2*tiefe/3);
      kreuzung.lineTo(xPosition+2*breite/3, yPosition+tiefe);
      return  transformiere(kreuzung);
  }
  
}