Added: last event MiniModel

This commit is contained in:
rubenpirreram
2026-05-27 22:54:17 +02:00
parent fccb12bd12
commit 5e8242bacf
13 changed files with 20 additions and 0 deletions
@@ -4,6 +4,8 @@ import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
import it.polimi.ingsw.gc14.Model.Cards.TribeCard;
import it.polimi.ingsw.gc14.Model.GamePackage.Board;
import it.polimi.ingsw.gc14.Model.GamePackage.CurrentState;
import it.polimi.ingsw.gc14.Network.EventType;
import it.polimi.ingsw.gc14.Network.NetworkEvent;
import java.io.Serializable;
import java.util.*;
@@ -22,6 +24,7 @@ public class MiniModel implements Serializable {
public ArrayList<BuildingCard> upperListBuildingCards;
public ArrayList<BuildingCard> lowerListBuildingCards;
public ArrayList<String> disconnectedPlayers;
public NetworkEvent lastEvent;
/**
* Map associating each occupied slot with the corresponding player.
@@ -98,6 +101,11 @@ public class MiniModel implements Serializable {
setPlayers(players);
}
//TODO
public void setLastEvent(NetworkEvent lastEvent) {
this.lastEvent = lastEvent;
}
/**
* Sets the list of totems still available for selection.