|
|
|
|
@ -487,7 +487,8 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
|
* When a card selection is ended, |
|
|
|
|
* sets the playerHandMaxCards with the number of cards set to the player |
|
|
|
|
*/ |
|
|
|
|
private fun cardSelectionEnded(index: Int) { |
|
|
|
|
fun cardSelectionEnded() { |
|
|
|
|
val index = this.currentSelection.index |
|
|
|
|
val cardsRow = this.rowRepresentables[index] as CardsRow |
|
|
|
|
if (cardsRow is PlayerCardsRow) { |
|
|
|
|
this.playerHandMaxCards = cardsRow.cardCount |
|
|
|
|
@ -699,12 +700,6 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
|
return listOf() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
* Ends the card selection |
|
|
|
|
*/ |
|
|
|
|
fun cardSelectionEnded() { |
|
|
|
|
this.cardSelectionEnded(this.currentSelection.index) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
* Defines the positions having straddled and |
|
|
|
|
|