From 4b17af2c2f50a9d67cf1cf49cafdaac8f807d4b6 Mon Sep 17 00:00:00 2001 From: Janis Date: Wed, 14 Jan 2026 10:12:09 +0100 Subject: [PATCH] feat: CORE-4 Rework the delay handler (#113) Reviewed-on: https://git.janis-eccarius.de/KnockOutWhist/KnockOutWhist-Web/pulls/113 Co-authored-by: Janis Co-committed-by: Janis --- 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 = {