GameV1游戏;
public void connect() {
connect("//localhost/Game");
if (getServer() != null) {
game= (GameV1) getServer();
}
}
Run Code Online (Sandbox Code Playgroud)
这个方法"connect("// localhost/Game");" 只需将服务器设置在upperclase上,然后将其转换为GameV1 Game = interface GameV1 =具有实现游戏的具体类
if(getServer()!= null)这返回true但是在施放com.sun.proxy时出现此错误.$ Proxy1无法强制转换为GameV1
| 归档时间: |
|
| 查看次数: |
7364 次 |
| 最近记录: |