Module it.polimi.ingsw.am13
Class MsgResponse
java.lang.Object
it.polimi.ingsw.am13.network.socket.message.Message
it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MsgResponseChat
,MsgResponseChosenPersonalObjective
,MsgResponseEndGame
,MsgResponseError
,MsgResponseFinalPhase
,MsgResponseGetRooms
,MsgResponseInGame
,MsgResponseNextTurn
,MsgResponsePickedCard
,MsgResponsePing
,MsgResponsePlayedCard
,MsgResponsePlayedStarter
,MsgResponsePlayerDisconnected
,MsgResponsePlayerJoinedRoom
,MsgResponsePlayerLeftRoom
,MsgResponsePlayerReconnected
,MsgResponsePointsCalculated
,MsgResponseStartGame
,MsgResponseUpdateGameState
,MsgResponseWinner
Abstract class for a response message, which is sent to the client by the server
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
The type of the response, which is useful to associate it to the corresponding request
-
-
Constructor Details
-
MsgResponse
Builds a new response message with the given type- Parameters:
type
- the type of the response
-
-
Method Details
-
getType
- Returns:
- the type of the response
-