Class Reconnect

All Implemented Interfaces:
Serializable

public class Reconnect extends ConnectionMessage
A ConnectionMessage sent by a client in order to request the server to reconnect to a lobby.
See Also:
  • Constructor Details

    • Reconnect

      public Reconnect(String sender, int gameId, String passcode)
  • 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

      public String 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