Fixed:Client Resilience (TCP)

This commit is contained in:
rubenpirreram
2026-05-08 17:16:09 +02:00
parent e78096d2e0
commit 9fe23c6f9e
7 changed files with 91 additions and 10 deletions
@@ -59,6 +59,20 @@ public abstract class OrderLogicCard implements Serializable {
}
/**
* Adds the player to the end of the queue, without effects.
*
* @param player the player to be pushed into the queue.
*/
public void pushNoEffect(Player player){
if(players.size()==0)
{
playerList=new ArrayList<>();
}
playerList.add(new OrderPlayer(player,false));
players.add(player);
}
/**
* Removes and returns the first player in the queue.