ishape.java

来自「联机坦克游戏」· Java 代码 · 共 32 行

JAVA
32
字号
/*
 * Created on 2005-3-10
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package shape;

/**
 * @author Emtry Immortal
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public interface IShape {
	public boolean isSuperpose(IShape shape);
	
	public boolean isSuperpose(int left, int top, int width, int height) ;
	
	public boolean isSuperpose(double x, double y, double radius) ;
	
	public void move(double dDirect, double dDistance);

	public void setLocation(double x, double y);

	public boolean isAcross(double x1, double y1, double x2, double y2);
	
	public boolean isAcross(IShape shape);
	
	public boolean isConatin(IShape shape);

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?