All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.eu.codlab.lorcana.math.ExpectedCard.kt Maven / Gradle / Ivy

There is a newer version: 0.15.0
Show newest version
package eu.codlab.lorcana.math

class ExpectedCard internal constructor(
    val name: String,
    originalAmount: Long,
    originalMin: Long,
    originalMax: Long
) {
    var amount: Long = originalAmount
        private set
    var min: Long = originalMin
        private set
    var max: Long = originalMax
        private set

    internal fun update(amount: Long, min: Long, max: Long) {
        this.amount = amount
        this.min = min
        this.max = max
    }

    override fun toString(): String {
        return "{amt: $amount, min: $min, max: $max}"
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy