|
|
|
|
@ -948,6 +948,7 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
|
*/ |
|
|
|
|
fun setAnte(ante: Double) { |
|
|
|
|
this.handHistory.ante = ante |
|
|
|
|
this.handHistory.bigBlindAnte = false |
|
|
|
|
|
|
|
|
|
val positionIndexes = (0 until this.handHistory.numberOfPlayers).toList() |
|
|
|
|
this.sortedActions.updateRemainingStacksForPositions(positionIndexes) |
|
|
|
|
@ -957,9 +958,13 @@ class HandHistoryViewModel : ViewModel(), RowRepresentableDataSource, CardCentra |
|
|
|
|
* Sets whether the hand uses big blind ante or not |
|
|
|
|
*/ |
|
|
|
|
fun setBigBlindAnte(bigBlindAnte: Boolean) { |
|
|
|
|
if (bigBlindAnte != this.handHistory.bigBlindAnte) { // we check this because table notification can trigger a listener and call this |
|
|
|
|
this.handHistory.bigBlindAnte = bigBlindAnte |
|
|
|
|
this.handHistory.ante = 0.0 |
|
|
|
|
|
|
|
|
|
this.sortedActions.updateBigBlindRemainingStack() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
|
* Defines the [player] at the saved [tappedPlayerPositionIndex] |
|
|
|
|
|