(String ip, int port, String playerName)
| 97 | |
| 98 | |
| 99 | public void joinGlobalServer(String ip, int port, String playerName) throws IOException |
| 100 | { |
| 101 | connection = new Connection(ip, port); |
| 102 | |
| 103 | connection.sendMessage(URLEncoder.encode(playerName,"UTF-8")); |
| 104 | |
| 105 | this.localPlayer = playerName; |
| 106 | |
| 107 | this.running = true; |
| 108 | new Thread(this).start(); |
| 109 | |
| 110 | ((PreGameScreen)graphwar.getUI().getScreen(Constants.PRE_GAME_SCREEN)).refreshGlobalButton(); |
| 111 | ((GameScreen)graphwar.getUI().getScreen(Constants.GAME_SCREEN)).refreshGlobalButton(); |
| 112 | } |
| 113 | |
| 114 | public String getIP(int roomNum) |
| 115 | { |
no test coverage detected