import sum.kern.*;

public class Personenwagen extends Waggon
{
    public Personenwagen(int pH, int pV)
    {
        super (pH, pV);
        setzeLaenge(90);
    }

    protected void zeichne()
    {
        double lH, lV;
        
        lH = hatStift.hPosition();
        lV = hatStift.vPosition();
        
		// Schuelerloesung
		hatStift.runter();
		hatStift.dreheBis(90);
		hatStift.bewegeUm(3);
		hatStift.dreheUm(180);
		hatStift.bewegeUm(6);
		hatStift.dreheUm(180);
		hatStift.bewegeUm(3);
		hatStift.dreheUm(270);
		hatStift.bewegeUm(5);
		hatStift.dreheUm(90);
		hatStift.bewegeUm(45);
		hatStift.zeichneRechteck(80,50);
		hatStift.hoch();
		hatStift.dreheUm(270);
		hatStift.bewegeUm(4);
		hatStift.dreheUm(270);
		hatStift.bewegeUm(10);
		hatStift.runter();
		hatStift.zeichneRechteck(15,35);
		hatStift.hoch();
		hatStift.dreheUm(90);
		hatStift.bewegeUm(19);
		hatStift.runter();
		hatStift.zeichneRechteck(15,10);
		hatStift.hoch();
		hatStift.bewegeUm(19);
		hatStift.runter();
		hatStift.zeichneRechteck(15,10);
		hatStift.hoch();
		hatStift.bewegeUm(19);
		hatStift.runter();
		hatStift.zeichneRechteck(15,10);
		hatStift.hoch();
		hatStift.dreheUm(270);
		hatStift.bewegeUm(10);
		hatStift.runter();
		hatStift.zeichneRechteck(15,10);
		hatStift.hoch();
		hatStift.dreheUm(270);
		hatStift.bewegeUm(19);
		hatStift.runter();
		hatStift.zeichneRechteck(15,10);
		hatStift.hoch();
		hatStift.bewegeUm(19);
		hatStift.runter();
		hatStift.zeichneRechteck(15,10);
		hatStift.hoch();
		hatStift.bewegeUm(19);
		hatStift.runter();
		hatStift.dreheUm(90);
		hatStift.hoch();
		hatStift.bewegeUm(35);
		hatStift.dreheUm(90);
		hatStift.bewegeUm(11);
		hatStift.runter();
		hatStift.zeichneKreis(5);
		hatStift.hoch();
		hatStift.bewegeUm(50);
		hatStift.runter();
		hatStift.zeichneKreis(5);
		hatStift.hoch();
		hatStift.bewegeUm(15);
		hatStift.dreheUm(90);
		hatStift.bewegeUm(10);
		hatStift.runter();
		hatStift.dreheUm(270);
		hatStift.bewegeUm(5);
		hatStift.dreheUm(90);
		hatStift.bewegeUm(3);
		hatStift.dreheUm(180);
		hatStift.bewegeUm(6);
		hatStift.dreheUm(180);
		hatStift.bewegeUm(3);
		hatStift.hoch();
		hatStift.bewegeBis(lH, lV);
		hatStift.dreheBis(0);
    }

}
