1 Star 0 Fork 0

菜鸡互啄/俄罗斯方块_2048

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Cell.java 869 Bytes
一键复制 编辑 原始数据 按行查看 历史
3116004655 提交于 2018-11-03 01:34 . Upload Cell.java
package Tetris2048;
import java.awt.image.BufferedImage;
public class Cell {
private int row;
private int col;
private BufferedImage image;
public Cell() {}
public Cell(int row, int col, BufferedImage image) {
super();
this.row = row; //к
this.col = col; //к
this.image = image;
}
public int getRow() {
return row;
}
public void setRow(int row) {
this.row = row;
}
public int getCol() {
return col;
}
public void setCol(int col) {
this.col = col;
}
public BufferedImage getImage() {
return image;
}
public void setImage(BufferedImage image) {
this.image = image;
}
@Override
public String toString() {
return "(" + row + ", " + col + ")";
}
/**ƶ*/
public void left() {
col--;
}
public void right() {
col++;
}
public void drop() {
row++;
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/minigameproject/tetris__2048.git
git@gitee.com:minigameproject/tetris__2048.git
minigameproject
tetris__2048
俄罗斯方块_2048
master

搜索帮助

Dd8185d8 1850385 E526c682 1850385