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