📄 point.java
字号:
public class Point implements java.io.Serializable{
int x,y;
boolean haveChessPiece,isPlayPoint,isBoxPoint;
ChessPiece chessPicec;
public Point(int x,int y){
this.x=x;
this.y=y;
}
public boolean isHaveChessPiece(){
return haveChessPiece;
}
public void setHaveChessPiece(boolean boo){
haveChessPiece=boo;
}
public int getX(){
return x;
}
public int getY(){
return y;
}
public boolean equals(Point p){
if(p.getX()==this.getX()&&p.getY()==this.getY())
return true;
else
return false;
}
public void setChessPiece(ChessPiece chessPicec){
this.chessPicec=chessPicec;
}
public ChessPiece getChessPiece(){
return chessPicec;
}
public void setIsPlayPoint(boolean boo){
isPlayPoint=true;
}
public void setIsBoxPoint(boolean boo){
isBoxPoint=true;
}
public boolean getIsPlayPoint(){
return isPlayPoint;
}
public boolean getIsBoxPoint(){
return isBoxPoint;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -