import sum.kern.*;

public class Personenwagen extends Waggon
{

    public Personenwagen(int pH, int pV)
    {
        super (pH, pV);
        this.setzeLaenge(90);
    }

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

}

