This commit is contained in:
2022-05-22 23:45:54 +08:00
parent a9f7967976
commit 5dfbf0b8ae
12 changed files with 462 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import java.awt.Graphics;
public interface IShape {
public int getX();
public int getY();
public void setX(int x);
public void setY(int y);
public boolean isVisible(int w, int h);
public boolean isIn(int x, int y);
public void draw(Graphics g);
}