📄 wapmain.java
字号:
package com.newpalm.game.mj;
import com.newpalm.game.framework.Client;
import com.newpalm.game.mj.client.MJConsoleClient;
import com.newpalm.game.mj.share.Player;
public class WapMain {
public void start() {
// Player和Client是聚合关系,因为Player数据是相对持久的
Player p = new Player("李伟", 25000);
Client clt = new MJConsoleClient(p);
// 这里把Server做成复合的了,因为是单机游戏,如果换成网络版,
// 显然需要单独在两个虚拟机中运行。
( (MJConsoleClient) clt).openConsole();
}
public static void main(String[] args) {
WapMain theApp = new WapMain();
theApp.start();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -