Module it.polimi.ingsw.am13
Class MsgResponseFinalPhase
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.MsgResponseFinalPhase
- All Implemented Interfaces:
Serializable
Response message when the game reaches the final phase
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The number of turns left before the end of the game -
Constructor Summary
ConstructorsConstructorDescriptionMsgResponseFinalPhase
(int turnsToEnd) Builds a new response message with the given number of turns left -
Method Summary
Methods inherited from class it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
getType
-
Field Details
-
turnsToEnd
private final int turnsToEndThe number of turns left before the end of the game
-
-
Constructor Details
-
MsgResponseFinalPhase
public MsgResponseFinalPhase(int turnsToEnd) Builds a new response message with the given number of turns left- Parameters:
turnsToEnd
- the number of turns left before the end of the game
-
-
Method Details
-
getTurnsToEnd
public int getTurnsToEnd()- Returns:
- the number of turns left before the end of the game
-