From 1d8b1c95f2fe18face55f023f4f1ce896ea0708a Mon Sep 17 00:00:00 2001 From: Janis Date: Wed, 14 Jan 2026 10:11:03 +0100 Subject: [PATCH] feat: CORE-4 Rework the delay handler --- knockoutwhist | 2 +- knockoutwhistweb/app/logic/game/GameLobby.scala | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/knockoutwhist b/knockoutwhist index 10fa4ba..2d6b56c 160000 --- a/knockoutwhist +++ b/knockoutwhist @@ -1 +1 @@ -Subproject commit 10fa4badf09b2df0105581197d83a97555bbf6b1 +Subproject commit 2d6b56ccf18cbddb63437314e3774145ce2bca87 diff --git a/knockoutwhistweb/app/logic/game/GameLobby.scala b/knockoutwhistweb/app/logic/game/GameLobby.scala index 24b4588..dafa791 100644 --- a/knockoutwhistweb/app/logic/game/GameLobby.scala +++ b/knockoutwhistweb/app/logic/game/GameLobby.scala @@ -9,6 +9,7 @@ import de.knockoutwhist.events.player.PlayerEvent import de.knockoutwhist.player.Playertype.HUMAN import de.knockoutwhist.player.{AbstractPlayer, PlayerFactory} import de.knockoutwhist.rounds.{Match, Round, Trick} +import de.knockoutwhist.utils.DelayHandler import de.knockoutwhist.utils.events.{EventListener, SimpleEvent} import events.{KickEvent, LeftEvent, LobbyUpdateEvent, UserEvent} import exceptions.* @@ -33,6 +34,7 @@ class GameLobby private( private val users: mutable.Map[UUID, UserSession] = mutable.Map() logic.addListener(this) + logic.addListener(DelayHandler) logic.createSession() def addUser(user: User): UserSession = {