Fix: OrderPlayer is now serializable

This commit is contained in:
2026-04-30 15:32:26 +02:00
parent 204b975e7f
commit 61caba4b47
2 changed files with 6 additions and 2 deletions
@@ -40,10 +40,12 @@ public class ClientLauncherTUI {
} }
Thread.sleep(500); Thread.sleep(500);
} }
System.out.println("Model set\n\n"); System.out.println("Model set\n\n");
System.out.print("\033[H\033[2J");
System.out.flush();
System.out.println(controller.localModel);
} else if (networkType == 1) { } else if (networkType == 1) {
@@ -2,12 +2,14 @@ package it.polimi.ingsw.gc14.Model.Orders;
import it.polimi.ingsw.gc14.Model.Player; import it.polimi.ingsw.gc14.Model.Player;
import java.io.Serializable;
/** /**
* Abstract base class for all order logic cards. * Abstract base class for all order logic cards.
* An OrderLogicCard manages a queue of players and defines the effects * An OrderLogicCard manages a queue of players and defines the effects
* applied when players are pushed back into the queue. * applied when players are pushed back into the queue.
*/ */
public class OrderPlayer{ public class OrderPlayer implements Serializable {
public Player player; public Player player;
public boolean played; public boolean played;
public OrderPlayer(Player player,boolean played){ public OrderPlayer(Player player,boolean played){