Graphical disconnection

This commit is contained in:
2026-05-27 20:09:48 +02:00
parent eec85c5a3f
commit 06b6bc971f
6 changed files with 21 additions and 5 deletions
@@ -24,6 +24,7 @@ import java.rmi.RemoteException;
import java.util.*;
import java.util.concurrent.*;
import java.net.*;
import java.util.stream.Collectors;
/**
@@ -274,7 +275,7 @@ public class ServerLauncher {
MiniModel miniModel;
synchronized (gameController) {
Game game = gameController.getModel();
miniModel= new MiniModel(game.getSlotMap(), game.orderLogicCard,game.getCurrentState(),game.getPlayers(), game.getAvailableTotems(),game.getUpperListTribeCards(),game.getLowerListTribeCards(),game.getUpperListBuilding(),game.getLowerListBuilding());
miniModel= new MiniModel(game.getSlotMap(), game.orderLogicCard,game.getCurrentState(),game.getPlayers(), game.getAvailableTotems(),game.getUpperListTribeCards(),game.getLowerListTribeCards(),game.getUpperListBuilding(),game.getLowerListBuilding(), game.disconnetedPlayers.entrySet().stream().filter(Map.Entry::getValue).map(x -> x.getKey().getUserName()).collect(Collectors.toCollection(ArrayList::new)));
}
serverRMI.notifyAll(miniModel);
serverTCP.notifyAll(miniModel);