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

/**
 * 
 */
public class DragNDropFeld extends Textfeld
{
    protected Konto k;

    /**
     * 
     */
    public DragNDropFeld(String text)
    {
        super(text);
        GreenfootImage gfi =  new  GreenfootImage(text, 18, Color.RED, Color.WHITE);
        this.setImage(gfi);
    }

    /**
     * 
     */
    public void act()
    {
        if (this.isTouching(Konto.class)) {
            this.k = (Konto)this.getOneIntersectingObject(Konto.class);
            this.aktionausfuehren();
            this.getWorld().removeObject(this.k);
        }
    }

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