📄 coordinates.java
字号:
package cn.org.matrix.gmatrix.gameLab.util;
/**
* 坐标类:表示对象的位置(可以是在x,y坐标系坐标,也可以是在图层中的行列数)
* @author cleverpig
*
*/
public class Coordinates {
//x轴坐标或者列数
private int x=0;
//y轴坐标或者行数
private int y=0;
public Coordinates(int x,int y){
this.x=x;
this.y=y;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -