?? findaroundminemarknumber.java
字號:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package 挖雷游戲;/** * * @author Administrator */public class FindAroundMineMarkNumber{ public FindAroundMineMarkNumber() { } public int 獲取周圍雷標記的數目(int i,int j,Block block[][],int 行數, int 列數) { int 雷標記數=0; for(int k=Math.max(i-1,1);k<=Math.min(i+1,行數);k++) { for(int t=Math.max(j-1,1);t<=Math.min(j+1,列數);t++) { if(block[k][t].獲取探雷標記()==0&&block[k][t].isOpaque()) 雷標記數++; } } return 雷標記數; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -