MCPcopy Create free account
hub / github.com/catabriga/graphwar / recreateRoom

Method recreateRoom

src/RoomServer/GlobalClient.java:185–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183 }
184
185 public void recreateRoom()
186 {
187 if(this.roomHidden == true)
188 {
189 this.roomCreated = true;
190 this.roomHidden = false;
191 this.roomInvalid = false;
192 this.roomListed = true;
193
194 try
195 {
196 String message = NetworkProtocol.CREATE_ROOM+"&"+URLEncoder.encode(this.roomName, "UTF-8")+"&"+this.roomPort;
197 this.connection.sendMessage(message);
198 }
199 catch(Exception e)
200 {
201 e.printStackTrace();
202 }
203 }
204 }
205
206 public void createRoom(String roomName, int portNumber)
207 {

Callers 3

handleMessageMethod · 0.95
removeClientMethod · 0.45
finishGameMethod · 0.45

Calls 1

sendMessageMethod · 0.45

Tested by

no test coverage detected