Fix: concurrent access in Upper and Lower List, added img cache
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user