application.java

来自「一款很好玩的简单的坦克游戏」· Java 代码 · 共 40 行

JAVA
40
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?