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 94a3304..ce3bda4 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 @@ -5,12 +5,25 @@ public class Lobby { String gameID; GameState state; + + + public Lobby(String gameID){ + //the LobbyManager can create a Lobby with a specific ID. + this.gameID = gameID; + } + public void recieveEvents(Request[] requests){ //Get Messages from the LobbyManager + //possible requests: MeleeAttackRequest, RangeAttackRequest, MoveRequest, ExchangeInfinityStoneRequest, UseInfinityStoneRequest. } public void sendEvents(Event[] events){ //Send Messages to the LobbyManager + //Events spliced in: + //Gamestate Events: Ack, Nack, Req, GamestateEvent, CustomEvent + //Entity Events: DestroyEntityEvent, HealedEvent, TakenDamageEvent, SpawnEntityEvent + //Character Events: MeleeAttackEvent, RangedAttackEvent, MoveEvent, UseInfinityStoneEvent, ExchangeInfinityStoneEvent + //Game Events: TimeoutEvent, TimeoutWarningEvent, WinEvent, RoundSetupEvent, TurnEvent, TurnTimeoutEvent, DisconnectEvent. } public void processEvents(){