Added List of ClientHandlers to represent who is in the lobby, aka the players.

This commit is contained in:
sebaschi 2022-04-08 12:10:49 +02:00
parent ce5723c3e9
commit 90f844ce6b

View File

@ -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<ClientHandler> players;
}