Add: Endgame event creation end sending
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user