Class MsgCommandReconnectGame

All Implemented Interfaces:
Serializable

public class MsgCommandReconnectGame extends MsgCommand implements Serializable
Command message to reconnect to an existing game, containing nickname and token of the player who wants to reconnect
See Also:
  • Field Details

    • nickname

      private final String nickname
      Nickname of the player who wants to reconnect
    • token

      private final Token token
      Token of the player who wants to reconnect
  • Constructor Details

    • MsgCommandReconnectGame

      public MsgCommandReconnectGame(String nickname, Token token)
      Creates the message by setting the two attributes to the parameters
      Parameters:
      nickname - of the player who wants to reconnect
      token - of the player who wants to reconnect
  • Method Details

    • getNickname

      public String getNickname()
      Returns:
      the nickname of the player who wants to reconnect
    • getToken

      public Token getToken()
      Returns:
      the token of the player who wants to reconnect