Module it.polimi.ingsw.am13
Class MsgResponseNextTurn
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.MsgResponseNextTurn
- All Implemented Interfaces:
Serializable
Response message which is sent when the next turn starts, containing the player who has to play in the next turn
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerLobby
The player that has to play in the next turn -
Constructor Summary
ConstructorsConstructorDescriptionMsgResponseNextTurn
(PlayerLobby player) Builds a new response message with the given player -
Method Summary
Methods inherited from class it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
getType
-
Field Details
-
player
The player that has to play in the next turn
-
-
Constructor Details
-
MsgResponseNextTurn
Builds a new response message with the given player- Parameters:
player
- the player that has to play in the next turn
-
-
Method Details
-
getPlayer
- Returns:
- the player that has to play in the next turn
-