From 40aa62e3d0091cb2fcc6c7286e400add88fa006c Mon Sep 17 00:00:00 2001 From: rubenpirreram Date: Tue, 12 May 2026 22:24:06 +0200 Subject: [PATCH] Add: NEXTROUND EventType --- src/main/java/it/polimi/ingsw/gc14/Network/EventType.java | 1 + .../polimi/ingsw/gc14/Network/NetworkEvents/ApplyNextRound.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/it/polimi/ingsw/gc14/Network/EventType.java b/src/main/java/it/polimi/ingsw/gc14/Network/EventType.java index 8d01f34..1bbc99d 100644 --- a/src/main/java/it/polimi/ingsw/gc14/Network/EventType.java +++ b/src/main/java/it/polimi/ingsw/gc14/Network/EventType.java @@ -16,5 +16,6 @@ public enum EventType { SKIP_NO_DRAWABLE, DISCONNECTED_PLAYER, RECONNECT_PLAYER, + NEXT_ROUND, NO_OPTIONAL_CARD } diff --git a/src/main/java/it/polimi/ingsw/gc14/Network/NetworkEvents/ApplyNextRound.java b/src/main/java/it/polimi/ingsw/gc14/Network/NetworkEvents/ApplyNextRound.java index cddbb0b..fe52676 100644 --- a/src/main/java/it/polimi/ingsw/gc14/Network/NetworkEvents/ApplyNextRound.java +++ b/src/main/java/it/polimi/ingsw/gc14/Network/NetworkEvents/ApplyNextRound.java @@ -22,7 +22,7 @@ public class ApplyNextRound extends NetworkEvent implements Serializable{ List players; //TODO public ApplyNextRound(Map slotPlayerMap, OrderLogicCard orderLogicCard, CurrentState currentState, List players){ - super("SERVER",EventType.DISCONNECTED_PLAYER,false); + super("SERVER",EventType.NEXT_ROUND,false); this.slotPlayerMap = slotPlayerMap; this.orderLogicCard = orderLogicCard; this.currentState = currentState;