Add: Endgame event creation end sending

This commit is contained in:
rubenpirreram
2026-05-15 18:02:34 +02:00
parent 826ae992ba
commit 6cb25bae63
5 changed files with 85 additions and 17 deletions
@@ -18,6 +18,7 @@ public class MiniModel implements Serializable {
public CurrentState currentState;
public Map<String, Player> players;
public List<Totems> availableTotems;
public List<Player> standingPlayers;
// --- Costruttori ---
@@ -37,6 +38,7 @@ public class MiniModel implements Serializable {
this.currentState = currentState;
this.players = new HashMap<>();
this.availableTotems = availableTotems;
this.standingPlayers = new ArrayList<>();
setPlayers(players);
}
@@ -72,6 +74,9 @@ public class MiniModel implements Serializable {
public void setPlayer(Player player) {
players.put(player.getUserName(), player);
}
public void setStandingPlayers(List<Player> standingPlayers) {
this.standingPlayers = standingPlayers;
}
public int getPositionByUsername(String username) {