(final String gameName)
| 68 | public static Map<String, GameImportsImpl> games = new HashMap<>(); |
| 69 | |
| 70 | @Override |
| 71 | public List<client_t> getClientsForInstance(final String gameName) { |
| 72 | if (!games.containsKey(gameName)) { |
| 73 | // happens during the game instance creation, while the instance has random name |
| 74 | Com.Printf("Game " + gameName + " is not found!\n"); |
| 75 | } |
| 76 | // nullify unrelated clients |
| 77 | return clients.stream().map(c -> c.gameName != null && c.gameName.equals(gameName) ? c : null).collect(Collectors.toList()); |
| 78 | } |
| 79 | |
| 80 | |
| 81 | /** |
no test coverage detected