Module it.polimi.ingsw.am13
Class MsgResponsePlayedStarter
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.MsgResponsePlayedStarter
- All Implemented Interfaces:
Serializable
Response message which is sent when a player has successfully played his starter card
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<Coordinates> The list of coordinates that are available after playing the starterprivate final PlayerLobby
The player that has played a starterprivate final CardStarterIF
The starter that has been played -
Constructor Summary
ConstructorsConstructorDescriptionMsgResponsePlayedStarter
(PlayerLobby player, CardStarterIF starter, List<Coordinates> availableCoords) Builds a new response message with the given player, the played starter and the available coordinates -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
getType
-
Field Details
-
player
The player that has played a starter -
starter
The starter that has been played -
availableCoords
The list of coordinates that are available after playing the starter
-
-
Constructor Details
-
MsgResponsePlayedStarter
public MsgResponsePlayedStarter(PlayerLobby player, CardStarterIF starter, List<Coordinates> availableCoords) Builds a new response message with the given player, the played starter and the available coordinates- Parameters:
player
- the player that has played a starterstarter
- the starter that has been playedavailableCoords
- the list of coordinates that are available after playing the card
-
-
Method Details
-
getPlayer
- Returns:
- the player that has played a starter
-
getStarter
- Returns:
- the starter that has been played
-
getAvailableCoords
- Returns:
- the list of coordinates that are available after playing the starter
-