From f471b66eb6b5b349d2fdb11dd2327cfd4ef66640 Mon Sep 17 00:00:00 2001 From: Richard Reiber Date: Wed, 5 May 2021 12:10:51 +0200 Subject: [PATCH] Added a few Methods and test Version control. --- .../marvelous/server/Lobby/Lobby.java | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/Lobby/Lobby.java b/Server/src/main/java/uulm/teamname/marvelous/server/Lobby/Lobby.java index f6d3c69..94a3304 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/Lobby/Lobby.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/Lobby/Lobby.java @@ -1,4 +1,69 @@ package uulm.teamname.marvelous.server.Lobby; public class Lobby { + + String gameID; + GameState state; + + public void recieveEvents(Request[] requests){ + //Get Messages from the LobbyManager + } + + public void sendEvents(Event[] events){ + //Send Messages to the LobbyManager + } + + public void processEvents(){ + //The largest Block to handle all possible Events + //To defuse this Method you could use the smaller Methods below. + } + + public void pause(){ + + } + public void unpause(){ + + } + public void handleDisconnects(){ + + } + public void validateRequest(){ + + } + public void applyRequestToGamestate(){ + + } + public void generateEvents(){ + + } + public void saidEvents(){ + + } + public void DisconnectClient(){ + + } + public void checkCheating(){ + + } + public void SendGamestate(){ + + } + public void handleConnects(){ + + } + public void handleSpectators(){ + + } + public void handlePlayers(){ + + } + public void handleLogon(){ + + } + public void handleLogoff(){ + + } + public void closeLobby(){ + + } }