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
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
-
Field Summary
Fields inherited from class it.polimi.ingsw.Server.Messages.Events.Internal.ConnectEvent
nickname, players
-
Constructor Summary
ConstructorDescriptionClientConnectEvent
(String lastConnectedNickname, List<String> players) Create the event -
Method Summary
Methods inherited from class it.polimi.ingsw.Server.Messages.Events.Internal.ConnectEvent
getNickname, getPlayers
-
Constructor Details
-
ClientConnectEvent
Create the event- Parameters:
lastConnectedNickname
- the nickname of the player that just connectedplayers
- the list of all connected players
-