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

/**
 * 
 */
public class Elefantenmutter extends Elefant
{
    private int mausX = 0;
    private int mausY = 0;

    /**
     * 
     */
    public Elefantenmutter()
    {
    }

    /**
     * 
     */
    public void kindEinsammeln()
    {
        Elefantenbaby e = (Elefantenbaby)this.getOneIntersectingObject(Elefantenbaby.class);
    }

    /**
     * 
     */
    public void alleKinderAusgeben()
    {
    }

    /**
     * Act - do whatever the Elefantenmutter wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act()
    {
        if (Greenfoot.getMouseInfo() != null) {
            this.mausX = Greenfoot.getMouseInfo().getX();
            this.mausY = Greenfoot.getMouseInfo().getY();
            this.turnTowards(this.mausX, this.mausY);
        }
        this.move(2);
        if (this.isTouching(Elefantenbaby.class)) {
            this.kindEinsammeln();
            this.alleKinderAusgeben();
        }
    }
}
