Class HandPlayerCards

java.lang.Object
ca.uqam.info.model.HandPlayerCards

public class HandPlayerCards extends Object
This class is needed to create the card of the player
Version:
1.3
Author:
Mohamed Latif Diallo, Hamza Afif, Ussel Sabbat
  • Constructor Details

    • HandPlayerCards

      public HandPlayerCards(int sizeColumnMax, int sizeRowMax)
      Constructor for the PlayerCard.
  • Method Details

    • getSizeColumn

      public int getSizeColumn()
    • getSizeRow

      public int getSizeRow()
    • reduceSizeColumn

      public void reduceSizeColumn()
    • augmenteSizeColumn

      public void augmenteSizeColumn()
    • reduceSizeRow

      public void reduceSizeRow()
    • getColumnList

      public ArrayList<ColumnCard> getColumnList()
      Getter the list of column of the player card
      Returns:
      ColumnCard[]
    • getCard

      public CardImpl getCard(int column, int row)
      Getter the card
      Parameters:
      column - as the position in the column in the Player card
      row - as the position in the column in the Player card
      Returns:
      CardImpl
      Throws:
      ModelAccessException - if the position is outside grid boundaries
    • replaceCardHand

      public void replaceCardHand(ca.uqam.info.mgl7010.max.skyjo.model.Card card, int column, int row)
      Helper method to push a card to the deck
      Parameters:
      card - as card from
      column - as the row where he is loocate
      row - as the row where he is loocate
    • addCard

      public void addCard(CardImpl card)
      Helper method to add a carte in the PlayerCard
      Parameters:
      card - as the card to add
    • isPlayerCardComplete

      public Boolean isPlayerCardComplete()
      Helper method to evaluate if all the card is reveald