📄 application.java
字号:
/*
* Created on 2005-1-8
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
import javax.swing.UIManager;
import tankgame.MulitMainGameThread;
import tankgame.server.AppServer;
/**
* @author Emtry Immortal
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class Application {
boolean packFrame = false;
//Construct the application
public Application() {
MulitMainGameThread mltGame=new MulitMainGameThread();
mltGame.initGame();
mltGame.run();
}
//Main method
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(Exception e) {
e.printStackTrace();
}
if(args.length>0&&args[0].equals("-server")){
System.out.println("server starting...");
AppServer server=new AppServer();
}
new Application();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -