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

Method checkNextTurn

src/GraphServer/GraphServer.java:943–960  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

941 }
942
943 private void checkNextTurn()
944 {
945 ListIterator<ClientConnection> itr = clients.listIterator();
946
947 while(itr.hasNext())
948 {
949 ClientConnection client = itr.next();
950
951 if(client.getReadyNextTurn() == false)
952 {
953 return;
954 }
955 }
956
957 // Everyone is ready for next turn if execution gets to here
958 nextTurn();
959
960 }
961
962 private void nextTurn()
963 {

Callers 2

removeClientMethod · 0.95
handleMessageMethod · 0.95

Calls 2

getReadyNextTurnMethod · 0.95
nextTurnMethod · 0.95

Tested by

no test coverage detected