- 7
- 0
- 约4.03万字
- 约 41页
- 2017-12-28 发布于河南
- 举报
连连看java程序-论文
连连看java程序-论文
连连看java程序
package kyodai.map;
import java.awt.*;
import javax.swing.*;
import kyodai.*;
/**
?* 消除连连看方块的类
?*/
public class AnimateDelete implements Runnable {
?static JButton[] dots;
?static long delay = 20l;
?int[] array = new int[44]; //最大距离只可能为2行1列
?private int count = 0;
?private volatile Thread thread;
?public AnimateDelete(JButton[] dots) {
??this.dots = dots;
??array = new int[0];
?}
?/**
? * 初始化
?*/
?public AnimateDelete(int direct, Point a, Point b) {
??initArray();
??calcTwoPoint(direct, a, b);
??start();
?}
?/**
? * direct 方向
? * 1表示a, b在同一直线上,b, c在同一竖线上;
? * 0表示a, b在同一竖
原创力文档

文档评论(0)