import java.awt.Image
import java.awt.Toolkit
import java.awt.Reatangle
import java.awt.Graphics
public abstract class FaGame{
//图片,坐标,界面
private Image img;
private int x;
private int y;
private Game youxi;
//有参构造函数
public FaGame(String img,int x,int y,Game youxi){
this.img = Toolkit.getDefault.Toolkit().getImage("img");
this.x = x;
this.y = y;
this.Game = youxi;
}
//绘制自身的方法
public abstract void paintself(Graphics g);
//还回长方形的方法
public abstract Rectangle getgetreRec();
}