|
|
|
|
@ -190,9 +190,11 @@ open class HandHistory : RealmObject(), Deletable, RowRepresentable, Filterable, |
|
|
|
|
/*** |
|
|
|
|
* Configures a hand history with a [handSetup] |
|
|
|
|
*/ |
|
|
|
|
fun configure(handSetup: HandSetup) { |
|
|
|
|
fun configure(handSetup: HandSetup, keepPlayers: Boolean = false) { |
|
|
|
|
|
|
|
|
|
this.playerSetups.removeAll(this.playerSetups) |
|
|
|
|
if (!keepPlayers) { |
|
|
|
|
this.playerSetups.removeAll(this.playerSetups) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
handSetup.tableSize?.let { this.numberOfPlayers = it } |
|
|
|
|
handSetup.ante?.let { this.ante = it } |
|
|
|
|
|