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

/**
 * 
 */
public class Schluessel extends Actor
{
    private String zimmer;

    /**
     * 
     */
    public Schluessel(String zimmer)
    {
        this.getImage().scale(this.getImage().getWidth() / 3, this.getImage().getHeight() / 3);
        this.zimmer = zimmer;
    }

    /**
     * 
     */
    public void act()
    {
        if (Greenfoot.mouseDragged(this)) {
            this.setLocation(Greenfoot.getMouseInfo().getX(), Greenfoot.getMouseInfo().getY());
        }
    }

    /**
     * 
     */
    public String getZimmer()
    {
        return this.zimmer;
    }

    /**
     * 
     */
    public void setZimmer(String zimmer)
    {
        this.zimmer = zimmer;
    }

    /**
     * 
     */
    protected void addedToWorld(World world)
    {
        world.showText(this.zimmer, this.getX() - this.getImage().getWidth() / 2 - 70, this.getY());
    }
}
