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

/**
 * 
 */
public class Elefantenbaby extends Elefant
{
    private String name;

    /**
     * 
     */
    public Elefantenbaby(String name)
    {
        this.name = name;
        this.setRotation(Greenfoot.getRandomNumber(180) + 90);
    }

    /**
     * Act - do whatever the Elefantenbaby wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act()
    {
        this.move(1);
        if (this.isAtEdge()) {
            this.turn(Greenfoot.getRandomNumber(360));
        }
    }

    /**
     * 
     */
    public String getName()
    {
        return this.name;
    }
}
