summaryrefslogtreecommitdiff
path: root/sw-common-model/src/commonMain/kotlin/org/luxons
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-26 18:12:45 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-26 18:12:45 +0200
commitc4dfb0b9ad659a2a8bf6d503f269687bfe90c27c (patch)
treef26497e9be22d75fc4a1b4652343230599daa615 /sw-common-model/src/commonMain/kotlin/org/luxons
parentFix imports in GameController.kt (diff)
downloadseven-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/org/luxons')
-rw-r--r--sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/cards/Cards.kt22
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) {
bgstack15