board.java
来自「是男人就下一百层」· Java 代码 · 共 31 行
JAVA
31 行
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 + =
减小字号Ctrl + -
显示快捷键?