Package game

Interface Trick

All Known Implementing Classes:
TrickImpl

public interface Trick
  • Method Details

    • addCard

      void addCard(Card<CardValue,CardSuit> card, String username)
      add a card played by a player
      Parameters:
      card - played
    • isCompleted

      boolean isCompleted()
      check if the trick is completed
      Returns:
      true if all the players have played their card
    • getCardsAndUsers

      Map<String,String> getCardsAndUsers()
      Returns:
      the cards and the users in the trick
    • getCards

      List<String> getCards()
      Returns:
      the cards in the trick
    • setCall

      void setCall(Call call, String username)
      Parameters:
      call - the call
      username - the user who makes the call check if the user can make a call and if true set the call
    • getCall

      Call getCall()
      Returns:
      the call of this trick