Module it.polimi.ingsw.am13
Class MsgCommandReconnectGame
java.lang.Object
it.polimi.ingsw.am13.network.socket.message.Message
it.polimi.ingsw.am13.network.socket.message.command.MsgCommand
it.polimi.ingsw.am13.network.socket.message.command.MsgCommandReconnectGame
- All Implemented Interfaces:
Serializable
Command message to reconnect to an existing game, containing nickname and token of the player who wants to reconnect
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMsgCommandReconnectGame
(String nickname, Token token) Creates the message by setting the two attributes to the parameters -
Method Summary
-
Field Details
-
nickname
Nickname of the player who wants to reconnect -
token
Token of the player who wants to reconnect
-
-
Constructor Details
-
MsgCommandReconnectGame
Creates the message by setting the two attributes to the parameters- Parameters:
nickname
- of the player who wants to reconnecttoken
- of the player who wants to reconnect
-
-
Method Details
-
getNickname
- Returns:
- the nickname of the player who wants to reconnect
-
getToken
- Returns:
- the token of the player who wants to reconnect
-