(int playerID, ClientConnection client, boolean ready)
| 367 | } |
| 368 | |
| 369 | private boolean setReady(int playerID, ClientConnection client, boolean ready) |
| 370 | { |
| 371 | List<Player> players = client.getPlayers(); |
| 372 | |
| 373 | ListIterator<Player> itr = players.listIterator(); |
| 374 | |
| 375 | while(itr.hasNext()) |
| 376 | { |
| 377 | Player player = itr.next(); |
| 378 | |
| 379 | if(player.getID() == playerID) |
| 380 | { |
| 381 | player.setReady(ready); |
| 382 | |
| 383 | if(ready == false) |
| 384 | { |
| 385 | if(startDelayer != null) |
| 386 | { |
| 387 | startDelayer.stop(); |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | return true; |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | return false; |
| 396 | } |
| 397 | |
| 398 | private boolean addSoldier(int playerID, ClientConnection client) |
| 399 | { |
no test coverage detected