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

/**
 * 
 */
public class Konto extends Actor
{
    private String kontentyp;
    private double kontostand = 0;
    private int kontonummer;

    /**
     * 
     */
    public Konto(String kontentyp, int kontonummer)
    {
        this.kontentyp = kontentyp;
        this.kontonummer = kontonummer;
    }

    /**
     * Act - do whatever the Konto wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act()
    {
        if (Greenfoot.mouseDragged(this)) {
            this.setLocation(Greenfoot.getMouseInfo().getX(), Greenfoot.getMouseInfo().getY());
        }
    }

    /**
     * 
     */
    public void einzahlen(double betrag)
    {
        this.kontostand = this.kontostand + betrag;
    }

    /**
     * 
     */
    public void abheben(double betrag)
    {
        this.kontostand = this.kontostand - betrag;
    }

    /**
     * 
     */
    public double getKontostand()
    {
        return this.kontostand;
    }

    /**
     * 
     */
    public String getKontentyp()
    {
        return this.kontentyp;
    }

    /**
     * 
     */
    public int getKontonummer()
    {
        return this.kontonummer;
    }

    /**
     * 
     */
    public void setKontostand(double kontostand)
    {
        this.kontostand = kontostand;
    }

    /**
     * 
     */
    public void setKontentyp(String kontentyp)
    {
        this.kontentyp = kontentyp;
    }

    /**
     * 
     */
    public void setKontonummer(int kontonummer)
    {
        this.kontonummer = kontonummer;
    }
}
