?? jminesweeper.java
字號:
/*
* Created on Mar 24, 2005
*
TODO to start to program. this program are wrote base on MVC structure
*/
package mqqqvpppm;
import java.io.IOException;
import model.Model;
import model.SaveAndLoad;
import view.UI;
/**
* @author mqqqvpppm
*
* TODO to start to program. this program are wrote base on MVC structure
*/
public class JMineSweeper {
public static void main(String[] args) {
int[] type;
boolean isMenuMarkSelsected;
try {
SaveAndLoad saveAndLoad = new SaveAndLoad(null);
type = saveAndLoad.loadType();
isMenuMarkSelsected = saveAndLoad.loadIsMenuMarkSelected();
saveAndLoad.closeStream();
} catch (IOException e) {
type = new int[4];
type[SaveAndLoad.INDEX_WIDTH] = 9;
type[SaveAndLoad.INDEX_HEIGHT] = 9;
type[SaveAndLoad.INDEX_MINENUMBER] = 10;
type[SaveAndLoad.INDEX_TYPE] = Model.TYPE_EASY;
isMenuMarkSelsected = true;
}
Model model = new Model(type[SaveAndLoad.INDEX_WIDTH],
type[SaveAndLoad.INDEX_HEIGHT],
type[SaveAndLoad.INDEX_MINENUMBER],
type[SaveAndLoad.INDEX_TYPE]);
model.setMenuMarkSelected(isMenuMarkSelsected);
UI ui = new UI(model);
model.addObserver(ui);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -