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

Method addPlayer

src/Graphwar/GlobalClient.java:167–177  ·  view source on GitHub ↗
(String name, int id)

Source from the content-addressed store, hash-verified

165 }
166
167 private void addPlayer(String name, int id)
168 {
169 LobbyPlayer player = new LobbyPlayer(name, id);
170
171 synchronized(players)
172 {
173 this.players.add(player);
174 }
175
176 ((GlobalScreen)graphwar.getUI().getScreen(Constants.GLOBAL_ROOM_SCREEN)).refreshPlayers();
177 }
178
179 private void removePlayer(int id)
180 {

Callers 1

handleMessageMethod · 0.95

Calls 3

refreshPlayersMethod · 0.80
getScreenMethod · 0.80
getUIMethod · 0.80

Tested by

no test coverage detected