From 4c81eec3e9e67a6bb80f0d340ee77282d8f6c7fc Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Mon, 5 Feb 2024 19:16:34 +0100 Subject: [PATCH] addTestModeToGameService --- src/main/java/de/hsfulda/onses/services/GameService.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/de/hsfulda/onses/services/GameService.java b/src/main/java/de/hsfulda/onses/services/GameService.java index 598d19b..547d214 100644 --- a/src/main/java/de/hsfulda/onses/services/GameService.java +++ b/src/main/java/de/hsfulda/onses/services/GameService.java @@ -10,6 +10,13 @@ import java.util.Random; public class GameService { private final Game game; + private boolean test = false; + + public GameService setTest(boolean test) { + this.test = test; + return this; + } + public GameService(Game game) { this.game = game; this.game.setGameService(this);