Module it.polimi.ingsw.am13
Class MsgResponsePlayedCard
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.MsgResponsePlayedCard
- All Implemented Interfaces:
Serializable
Response message which is sent when a player has successfully played a card
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<Coordinates> The list of coordinates that are available after playing the cardprivate final CardPlayableIF
The card that has been playedprivate final Coordinates
The coordinates at which the card that has been playedprivate final PlayerLobby
The player that has played a cardprivate final Integer
The points that the player has earned by playing the card -
Constructor Summary
ConstructorsConstructorDescriptionMsgResponsePlayedCard
(PlayerLobby player, CardPlayableIF cardPlayer, Coordinates coordinates, Integer points, List<Coordinates> availableCoordinates) Builds a new response message with the given player, the played card, the coordinates of the card, the points that the player has earned 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 card -
cardPlayer
The card that has been played -
coordinates
The coordinates at which the card that has been played -
points
The points that the player has earned by playing the card -
availableCoordinates
The list of coordinates that are available after playing the card
-
-
Constructor Details
-
MsgResponsePlayedCard
public MsgResponsePlayedCard(PlayerLobby player, CardPlayableIF cardPlayer, Coordinates coordinates, Integer points, List<Coordinates> availableCoordinates) Builds a new response message with the given player, the played card, the coordinates of the card, the points that the player has earned and the available coordinates- Parameters:
player
- the player that has played a cardcardPlayer
- the card that has been playedcoordinates
- the coordinates at which the card that has been playedpoints
- the points that the player has earned by playing the cardavailableCoordinates
- the list of coordinates that are available after playing the card
-
-
Method Details
-
getPlayer
- Returns:
- the player that has played a card
-
getCardPlayer
- Returns:
- the card that has been played
-
getCoordinates
- Returns:
- the coordinates of the card that has been played
-
getPoints
- Returns:
- the points that the player has earned by playing the card
-
getAvailableCoordinates
- Returns:
- the list of coordinates that are available after playing the card
-