📄 board.java
字号:
import java.util.Random;
public class Board {
public int typeid, x, status,level;
public boolean active,haveBonus;
public Board(int typeid,int x,int level){
this.typeid = typeid;
this.x = x;
this.level = level;
this.status = 0;
haveBonus = false;
if (typeid == 2){
if (Math.abs(new Random().nextInt()) % 2 == 0){
this.active = true;;
}
else{
this.active = false;
}
}
else{
if(typeid == 1){
this.active = true;
}
else{
this.active = false;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -