Class MsgResponsePickedCard

All Implemented Interfaces:
Serializable

public class MsgResponsePickedCard extends MsgResponse implements Serializable
Response message which is sent when a player has successfully picked a card
See Also:
  • Field Details

    • player

      private final PlayerLobby player
      The player that has picked a card
    • updatedVisibleCards

      private final List<? extends CardPlayableIF> 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

      private final CardPlayableIF 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 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
  • Method Details

    • getPlayer

      public PlayerLobby getPlayer()
      Returns:
      the player that has picked a card
    • getUpdatedVisibleCards

      public List<? extends CardPlayableIF> 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

      public CardPlayableIF getPickedCard()
      Returns:
      the card that has been picked