From 90f844ce6b096c08ee490fb277e84ba6e0517f82 Mon Sep 17 00:00:00 2001 From: sebaschi <74497638+sebaschi@users.noreply.github.com> Date: Fri, 8 Apr 2022 12:10:49 +0200 Subject: [PATCH] Added List of ClientHandlers to represent who is in the lobby, aka the players. --- .../java/ch/unibas/dmi/dbis/cs108/sebaschi/Lobby.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/unibas/dmi/dbis/cs108/sebaschi/Lobby.java b/src/main/java/ch/unibas/dmi/dbis/cs108/sebaschi/Lobby.java index 76cb7d9..3b104b0 100644 --- a/src/main/java/ch/unibas/dmi/dbis/cs108/sebaschi/Lobby.java +++ b/src/main/java/ch/unibas/dmi/dbis/cs108/sebaschi/Lobby.java @@ -1,6 +1,7 @@ package ch.unibas.dmi.dbis.cs108.sebaschi; import ch.unibas.dmi.dbis.cs108.multiplayer.server.ClientHandler; +import java.util.List; /** * The Lobby one is in after a client sends the CRTGM command. THe Server @@ -11,6 +12,11 @@ public class Lobby { * The Person who created the game and can configure it and decide to start once enough players * have entered the lobby. */ - ClientHandler admin; + private ClientHandler admin; + + /** + * Everyone who's in the lobby. + */ + private List players; }