Class AcceptedJoinLobby
java.lang.Object
it.polimi.ingsw.eriantys.messages.Message
it.polimi.ingsw.eriantys.messages.server.Accepted
it.polimi.ingsw.eriantys.messages.server.AcceptedJoinLobby
- All Implemented Interfaces:
Serializable
A message of type
Accepted
sent by the server in order to
tell the client the acceptance of a JoinLobby
or Reconnect
request.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
A getter for the identifier of the lobby which the client requested to join or reconnect.A getter for the passcode which has been previously associated with the client to manage disconnection scenarios.
-
Constructor Details
-
AcceptedJoinLobby
-
-
Method Details
-
getGameId
public int getGameId()A getter for the identifier of the lobby which the client requested to join or reconnect.- Returns:
- the identifier of the game
-
getPasscode
A getter for the passcode which has been previously associated with the client to manage disconnection scenarios.- Returns:
- the hexadecimal passcode which was given by the disconnection handling infrastructure to the client
-