import java.awt.*;

/**
 * Beschreiben Sie hier die Klasse Figur.
 * 
 * @author Setsuna
 * @version UwU
 */
public abstract class Figur{
    protected int x;
    protected int y;
    protected Color color;
    public Figur(int x ,int y, Color color){
          this.x =x;
          this.y =y;
          this.color =color;
    }
    public void draw(Graphics g){
        g.setColor(color);
    }
    public void changeColor(Color c){
        this.color = c;
    }
    public void verschiebeUm(int x,int y){
       this.x += x;
       this.y += y;
       
    }

    public void verschiebeNach(int x,int y){
       this.x =x;
       this.y =y;
       
    }
    public abstract boolean enthaeltPunkt(int x, int y);
}
