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

Method nextTurn

src/GraphServer/GraphServer.java:962–977  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

960 }
961
962 private void nextTurn()
963 {
964 ListIterator<ClientConnection> itr = clients.listIterator();
965
966 while(itr.hasNext())
967 {
968 ClientConnection client = itr.next();
969
970 client.setReadyNextTurn(false);
971 }
972
973 String message = NetworkProtocol.NEXT_TURN+"";
974 sendMessageAll(message);
975
976 timeTurnStarted = System.currentTimeMillis();
977 }
978
979 protected void finishGame(ClientConnection client)
980 {

Callers 2

checkNextTurnMethod · 0.95
checkTimeUpMethod · 0.95

Calls 2

setReadyNextTurnMethod · 0.95
sendMessageAllMethod · 0.95

Tested by

no test coverage detected