// WARNING: This file is auto-generated and any changes to it will be overwritten
import java.util.*;
import greenfoot.*;

/**
 * 
 */
public class Auto extends Actor
{
    private int geschwindigkeit;
    private boolean fernlichtIstAn;

    /**
     * 
     */
    public Auto()
    {
        this.geschwindigkeit = 3;
        this.fernlichtIstAn = false;
    }

    /**
     * 
     */
    public void act()
    {
        this.move(this.geschwindigkeit);
        if (Greenfoot.isKeyDown("left")) {
            this.turn(-3);
        }
        if (Greenfoot.isKeyDown("right")) {
            this.turn(3);
        }
        if (Greenfoot.isKeyDown("a")) {
            this.fernlichtIstAn = true;
        }
        if (Greenfoot.isKeyDown("s")) {
            this.fernlichtIstAn = false;
        }
    }
}
