Class AcceptedJoinLobby

All Implemented Interfaces:
Serializable

public class AcceptedJoinLobby extends Accepted
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 Details

    • AcceptedJoinLobby

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

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