Fix: OrderPlayer is now serializable
This commit is contained in:
@@ -40,10 +40,12 @@ public class ClientLauncherTUI {
|
||||
}
|
||||
Thread.sleep(500);
|
||||
}
|
||||
|
||||
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) {
|
||||
|
||||
@@ -2,12 +2,14 @@ package it.polimi.ingsw.gc14.Model.Orders;
|
||||
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Abstract base class for all order logic cards.
|
||||
* An OrderLogicCard manages a queue of players and defines the effects
|
||||
* applied when players are pushed back into the queue.
|
||||
*/
|
||||
public class OrderPlayer{
|
||||
public class OrderPlayer implements Serializable {
|
||||
public Player player;
|
||||
public boolean played;
|
||||
public OrderPlayer(Player player,boolean played){
|
||||
|
||||
Reference in New Issue
Block a user