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

/**
 * 
 */
public class Wissenschaftler extends Actor
{
    private Brain forschungsobjekt;

    /**
     * 
     */
    public Wissenschaftler()
    {
    }

    /**
     * 
     */
    public void act()
    {
        this.tastaturPruefen();
        this.kollisionenPruefen();
    }

    /**
     * 
     */
    public void kollisionenPruefen()
    {
        if (this.isTouching(Brain.class)) {
            this.forschungsobjekt = (Brain)this.getOneIntersectingObject(Brain.class);
        }
    }

    /**
     * 
     */
    public void tastaturPruefen()
    {
        if (Greenfoot.isKeyDown("space")) {
            this.move(4);
        }
        if (Greenfoot.isKeyDown("left")) {
            this.turn(-3);
        }
        if (Greenfoot.isKeyDown("right")) {
            this.turn(3);
        }
    }
}
