diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-26 18:12:45 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-26 18:12:45 +0200 |
commit | c4dfb0b9ad659a2a8bf6d503f269687bfe90c27c (patch) | |
tree | f26497e9be22d75fc4a1b4652343230599daa615 /sw-common-model/src/commonMain/kotlin | |
parent | Fix imports in GameController.kt (diff) | |
download | seven-wonders-c4dfb0b9ad659a2a8bf6d503f269687bfe90c27c.tar.gz seven-wonders-c4dfb0b9ad659a2a8bf6d503f269687bfe90c27c.tar.bz2 seven-wonders-c4dfb0b9ad659a2a8bf6d503f269687bfe90c27c.zip |
Add coin icon to buttons when they imply a cost
Diffstat (limited to 'sw-common-model/src/commonMain/kotlin')
-rw-r--r-- | sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/cards/Cards.kt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/cards/Cards.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/cards/Cards.kt index 6b7e1fe0..fdb4d11b 100644 --- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/cards/Cards.kt +++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/cards/Cards.kt @@ -52,17 +52,17 @@ data class PreparedCard( @Serializable data class CardBack(val image: String) -enum class PlayabilityLevel { - CHAINABLE, - NO_REQUIREMENTS, - ENOUGH_RESOURCES, - ENOUGH_GOLD, - ENOUGH_GOLD_AND_RES, - REQUIRES_HELP, - MISSING_REQUIRED_GOLD, - MISSING_GOLD_FOR_RES, - UNAVAILABLE_RESOURCES, - INCOMPATIBLE_WITH_BOARD +enum class PlayabilityLevel(val message: String) { + CHAINABLE("free because of a card on the board"), + NO_REQUIREMENTS("free"), + ENOUGH_RESOURCES("free"), + ENOUGH_GOLD("enough gold"), + ENOUGH_GOLD_AND_RES("enough gold and resources"), + REQUIRES_HELP("requires buying resources"), + MISSING_REQUIRED_GOLD("not enough gold"), + MISSING_GOLD_FOR_RES("not enough gold to buy resources"), + UNAVAILABLE_RESOURCES("neighbours don't have the missing resources"), + INCOMPATIBLE_WITH_BOARD("card already on the board") } enum class Color(val isResource: Boolean) { |