Class ClientConnectEvent

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

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

    • ClientConnectEvent

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