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

Method checkSkipLevel

src/GraphServer/GraphServer.java:1037–1063  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1035 }
1036
1037 private void checkSkipLevel()
1038 {
1039 ListIterator<ClientConnection> itr = clients.listIterator();
1040
1041 while(itr.hasNext())
1042 {
1043 ClientConnection client = itr.next();
1044
1045 if(client.getSkipLevel() == false)
1046 {
1047 return;
1048 }
1049 }
1050
1051 // Everyone wants to skip
1052
1053 itr = clients.listIterator();
1054
1055 while(itr.hasNext())
1056 {
1057 ClientConnection client = itr.next();
1058
1059 client.setSkipLevel(false);
1060 }
1061
1062 startGame();
1063 }
1064
1065 private void handleCommands(String msg, ClientConnection client) throws UnsupportedEncodingException
1066 {

Callers 1

handleCommandsMethod · 0.95

Calls 3

getSkipLevelMethod · 0.95
setSkipLevelMethod · 0.95
startGameMethod · 0.95

Tested by

no test coverage detected