Module it.polimi.ingsw.am13
Class MsgResponseWinner
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.MsgResponseWinner
- All Implemented Interfaces:
Serializable
Response message containing the list of players, one of which has won the game.
This message is sent when the last turn is over (or only a player is left and the reconnection timer expired)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<PlayerLobby> The list of players of the game, one of which has won the game -
Constructor Summary
ConstructorsConstructorDescriptionMsgResponseWinner
(List<PlayerLobby> players) Builds a new response message with the given list of players -
Method Summary
Methods inherited from class it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
getType
-
Field Details
-
players
The list of players of the game, one of which has won the game
-
-
Constructor Details
-
MsgResponseWinner
Builds a new response message with the given list of players- Parameters:
players
- the list of players of the game, one of which has won the game
-
-
Method Details
-
getPlayer
- Returns:
- the list of players of the game, one of which has won the game
-