Add rule to avoid having both ante and BB ante at the same time

hh
Laurent 6 years ago
parent be9bcc8ceb
commit 581c4936fa
  1. 8
      app/src/main/java/net/pokeranalytics/android/model/realm/handhistory/HandHistory.kt

@ -78,11 +78,19 @@ open class HandHistory : RealmObject(), Deletable, RowRepresentable, Identifiabl
* The ante
*/
var ante: Double = 0.0
set(value) {
field = value
this.bigBlindAnte = false
}
/***
* Big blind ante
*/
var bigBlindAnte: Boolean = false
set(value) {
field = value
this.ante = 0.0
}
/***
* Number of players in the hand

Loading…
Cancel
Save