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

Method removePlayer

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

Source from the content-addressed store, hash-verified

177 }
178
179 private void removePlayer(int id)
180 {
181 synchronized(players)
182 {
183 ListIterator<LobbyPlayer> itr = players.listIterator();
184
185 while(itr.hasNext())
186 {
187 LobbyPlayer player = itr.next();
188
189 if(player.getID() == id)
190 {
191 players.remove(player);
192 break;
193 }
194 }
195 }
196
197 ((GlobalScreen)graphwar.getUI().getScreen(Constants.GLOBAL_ROOM_SCREEN)).refreshPlayers();
198 }
199
200 private void removeRoom(int id)
201 {

Callers 1

handleMessageMethod · 0.95

Calls 4

getIDMethod · 0.95
refreshPlayersMethod · 0.80
getScreenMethod · 0.80
getUIMethod · 0.80

Tested by

no test coverage detected