一段俄罗斯方块的代码是什么意思

package com.Els;
/**
* 形态类
*
* @author HAO-影流之主
*/
public class State {
/**
* 设置八个属性
*/
int[] rows = new int[4];
int[] cols = new int[4];

/**
* 构造方法
*/
public State() {
}

public State(int[][] rowAndCol) {
super();
for (int i = 0; i < 4; i++) {
this.rows[i] = rowAndCol[i][0];
this.cols[i] = rowAndCol[i][1];
}
}
}

boxes[i][j]应该是用二维数组表示方框的形状。 int key = 0x8000;是自己定义的一个按钮。 具体的功能还要你来参考整体的代码来看,不用想太难,其实方框很简单的,只要把多线程搞懂就可以。
温馨提示:答案为网友推荐,仅供参考