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

Method updateRoom

src/Graphwar/GlobalClient.java:218–234  ·  view source on GitHub ↗
(int id, int gameMode, int numPlayers)

Source from the content-addressed store, hash-verified

216 }
217
218 private void updateRoom(int id, int gameMode, int numPlayers)
219 {
220 ListIterator<Room> itr = rooms.listIterator();
221
222 while(itr.hasNext())
223 {
224 Room room = itr.next();
225
226 if(room.getRoomID() == id)
227 {
228 room.updateRoom(numPlayers, gameMode);
229 break;
230 }
231 }
232
233 ((GlobalScreen)graphwar.getUI().getScreen(Constants.GLOBAL_ROOM_SCREEN)).refreshRooms();
234 }
235
236 private void addRoom(String name, int roomID, String ipAddress, int port, int mode, int numPlayers)
237 {

Callers 1

handleMessageMethod · 0.95

Calls 5

getRoomIDMethod · 0.95
updateRoomMethod · 0.95
refreshRoomsMethod · 0.80
getScreenMethod · 0.80
getUIMethod · 0.80

Tested by

no test coverage detected