()
| 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 | { |
no test coverage detected