(String ip, int port, String playerName)
| 66 | |
| 67 | |
| 68 | public void joinGlobalServer(String ip, int port, String playerName) throws IOException |
| 69 | { |
| 70 | connection = new Connection(ip, port); |
| 71 | |
| 72 | // This is not encoded because the dummy name constants is already encoded |
| 73 | connection.sendMessage(playerName); |
| 74 | |
| 75 | this.localPlayer = playerName; |
| 76 | |
| 77 | this.running = true; |
| 78 | new Thread(this).start(); |
| 79 | } |
| 80 | |
| 81 | public boolean isRoomInvalid() |
| 82 | { |
no test coverage detected