Class Reconnect
java.lang.Object
it.polimi.ingsw.eriantys.messages.Message
it.polimi.ingsw.eriantys.messages.ConnectionMessage
it.polimi.ingsw.eriantys.messages.client.Reconnect
- All Implemented Interfaces:
Serializable
A
ConnectionMessage sent by a client in order to request the server to reconnect to a lobby.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintA getter for the identifier of the lobby which the user is requesting to reconnect.A getter for the passcode which has been previously associated with the user to manage disconnection scenarios.
-
Constructor Details
-
Reconnect
-
-
Method Details
-
getGameId
public int getGameId()A getter for the identifier of the lobby which the user is requesting to reconnect.- Returns:
- the identifier of the game
-
getPasscode
A getter for the passcode which has been previously associated with the user to manage disconnection scenarios.- Returns:
- the hexadecimal passcode which was given by the disconnection handling infrastructure to the user
-