Module it.polimi.ingsw.am13
Class MsgResponseUpdateGameState
java.lang.Object
it.polimi.ingsw.am13.network.socket.message.Message
it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
it.polimi.ingsw.am13.network.socket.message.response.MsgResponseUpdateGameState
- All Implemented Interfaces:
Serializable
Response message which is sent to the player who just reconnected to an already started match, containing
the game state
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GameState
The updated game stateprivate final PlayerLobby
Player who wants to reconnect to an already started match -
Constructor Summary
ConstructorsConstructorDescriptionMsgResponseUpdateGameState
(GameModelIF gameModel, PlayerLobby player) Builds a new response message with the given game state -
Method Summary
Methods inherited from class it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
getType
-
Field Details
-
gameState
The updated game state -
player
Player who wants to reconnect to an already started match
-
-
Constructor Details
-
MsgResponseUpdateGameState
Builds a new response message with the given game state- Parameters:
gameModel
- the game modelplayer
- the player who wants to reconnect
-
-
Method Details
-
getGameState
- Returns:
- the game state at the moment the player reconnected
-
getPlayer
- Returns:
- the player who reconnected
-