Fix: concurrent access in Upper and Lower List, added img cache

This commit is contained in:
rubenpirreram
2026-05-15 23:53:25 +02:00
parent 89de79b5c8
commit 8a8a635db7
5 changed files with 156 additions and 173 deletions
@@ -1,6 +1,7 @@
package it.polimi.ingsw.gc14.View.TUI;
import it.polimi.ingsw.gc14.Model.*;
import it.polimi.ingsw.gc14.Model.GamePackage.GameStages;
import it.polimi.ingsw.gc14.Network.NetworkEvent;
import it.polimi.ingsw.gc14.View.IView;
import java.util.ArrayList;
@@ -58,6 +59,10 @@ public class TUI implements IView {
this.model = model;
this.username = "";
}
public void applyAndRender(NetworkEvent event) {
event.apply(model);
render();
}
/**
* Sets the username of the local player.