Module it.polimi.ingsw.am13
Class MsgResponsePickedCard
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.MsgResponsePickedCard
- All Implemented Interfaces:
Serializable
Response message which is sent when a player has successfully picked a card
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CardPlayableIF
The card that has been picked.private final PlayerLobby
The player that has picked a cardprivate final List
<? extends CardPlayableIF> The list of cards that are visible to the player (the two tops of the decks and the four cards that are drawable) -
Constructor Summary
ConstructorsConstructorDescriptionMsgResponsePickedCard
(PlayerLobby player, List<? extends CardPlayableIF> updatedVisibleCards, CardPlayableIF pickedCard) Builds a new response message with the given player, the updated visible cards and the picked card -
Method Summary
Methods inherited from class it.polimi.ingsw.am13.network.socket.message.response.MsgResponse
getType
-
Field Details
-
player
The player that has picked a card -
updatedVisibleCards
The list of cards that are visible to the player (the two tops of the decks and the four cards that are drawable) -
pickedCard
The card that has been picked.
-
-
Constructor Details
-
MsgResponsePickedCard
public MsgResponsePickedCard(PlayerLobby player, List<? extends CardPlayableIF> updatedVisibleCards, CardPlayableIF pickedCard) Builds a new response message with the given player, the updated visible cards and the picked card- Parameters:
player
- the player that has picked a cardupdatedVisibleCards
- the list of cards that are visible to the player (the two tops of the decks and the four cards that are drawable)pickedCard
- the card that has been picked
-
-
Method Details
-
getPlayer
- Returns:
- the player that has picked a card
-
getUpdatedVisibleCards
- Returns:
- the list of cards that are visible to the player (the two tops of the decks and the four cards that are drawable)
-
getPickedCard
- Returns:
- the card that has been picked
-