Class HandPlayerCards
java.lang.Object
ca.uqam.info.model.HandPlayerCards
This class is needed to create the card of the player
- Version:
- 1.3
- Author:
- Mohamed Latif Diallo, Hamza Afif, Ussel Sabbat
-
Constructor Summary
ConstructorsConstructorDescriptionHandPlayerCards(int sizeColumnMax, int sizeRowMax) Constructor for the PlayerCard. -
Method Summary
Modifier and TypeMethodDescriptionvoidHelper method to add a carte in the PlayerCardvoidgetCard(int column, int row) Getter the cardGetter the list of column of the player cardintintHelper method to evaluate if all the card is revealdvoidvoidvoidreplaceCardHand(ca.uqam.info.mgl7010.max.skyjo.model.Card card, int column, int row) Helper method to push a card to the deck
-
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
Getter the list of column of the player card- Returns:
- ColumnCard[]
-
getCard
Getter the card- Parameters:
column- as the position in the column in the Player cardrow- 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 fromcolumn- as the row where he is loocaterow- as the row where he is loocate
-
addCard
Helper method to add a carte in the PlayerCard- Parameters:
card- as the card to add
-
isPlayerCardComplete
Helper method to evaluate if all the card is reveald
-