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