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

Method removeClient

src/RoomServer/RemoteGraphServer.java:81–95  ·  view source on GitHub ↗
(ClientConnection client)

Source from the content-addressed store, hash-verified

79 }
80
81 public void removeClient(ClientConnection client)
82 {
83 super.removeClient(client);
84
85 if(this.clients.size() == 0)
86 {
87 if(this.gameState == Constants.GAME)
88 {
89 this.goPreGame();
90 globalClient.recreateRoom();
91 }
92 }
93
94 globalClient.sendRoomStatus(this.gameMode, this.players.size());
95 }
96
97 protected void startGame()
98 {

Callers

nothing calls this directly

Calls 3

goPreGameMethod · 0.80
recreateRoomMethod · 0.45
sendRoomStatusMethod · 0.45

Tested by

no test coverage detected