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

Method removeRoom

src/Graphwar/GlobalClient.java:200–216  ·  view source on GitHub ↗
(int id)

Source from the content-addressed store, hash-verified

198 }
199
200 private void removeRoom(int id)
201 {
202 ListIterator<Room> itr = rooms.listIterator();
203
204 while(itr.hasNext())
205 {
206 Room room = itr.next();
207
208 if(room.getRoomID() == id)
209 {
210 rooms.remove(room);
211 break;
212 }
213 }
214
215 ((GlobalScreen)graphwar.getUI().getScreen(Constants.GLOBAL_ROOM_SCREEN)).refreshRooms();
216 }
217
218 private void updateRoom(int id, int gameMode, int numPlayers)
219 {

Callers 1

handleMessageMethod · 0.95

Calls 4

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

Tested by

no test coverage detected