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

/**
 * 
 */
public class Forscher extends Actor
{
    private ArrayList<Elefantenbaby> kinderliste =  new  ArrayList < Elefantenbaby > ();

    /**
     * Act - do whatever the Elefantenvater wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act()
    {
        if (Greenfoot.mouseClicked(this)) {
            this.alleKinderInListePacken();
        }
    }

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

    /**
     * 
     */
    public void alleKinderAusgeben()
    {
        List<Elefantenbaby> kinderliste = this.getWorld().getObjects(Elefantenbaby.class);
        for (final Elefantenbaby e : kinderliste) {
            System.out.println(e.getName());
        }
    }
}
