Class ClientDisconnectEvent

java.lang.Object
it.polimi.ingsw.Server.Messages.Events.Internal.ConnectEvent
it.polimi.ingsw.Server.Messages.Events.Internal.ClientDisconnectEvent
All Implemented Interfaces:
ClientEvent

public class ClientDisconnectEvent extends ConnectEvent
This Event is generated when a lobby's client disconnects and is sent to the lobby's clients. When handled by the LobbyServer, becomes ClientConnected
  • Constructor Details

    • ClientDisconnectEvent

      public ClientDisconnectEvent(String lastDisconnectedNickname, List<String> players)
      Create the event
      Parameters:
      lastDisconnectedNickname - the nickname of the player that just disconnected
      players - the list of all connected players