diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-15 01:20:40 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-15 01:20:40 +0200 |
commit | 6be4b282381546060b2496b9ea9c9c7318d63247 (patch) | |
tree | f7ff056f7727cf49aca5b007b53010c29ea70d9b /sw-common-model/src/commonMain/kotlin | |
parent | Clean up (diff) | |
download | seven-wonders-6be4b282381546060b2496b9ea9c9c7318d63247.tar.gz seven-wonders-6be4b282381546060b2496b9ea9c9c7318d63247.tar.bz2 seven-wonders-6be4b282381546060b2496b9ea9c9c7318d63247.zip |
Send score at end of game
Diffstat (limited to 'sw-common-model/src/commonMain/kotlin')
-rw-r--r-- | sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt index 736ace86..0d02c5fd 100644 --- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt +++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt @@ -5,6 +5,7 @@ import org.luxons.sevenwonders.model.cards.HandCard import org.luxons.sevenwonders.model.cards.TableCard import org.luxons.sevenwonders.model.resources.ResourceTransactions import org.luxons.sevenwonders.model.resources.noTransactions +import org.luxons.sevenwonders.model.score.ScoreBoard import org.luxons.sevenwonders.model.wonders.WonderBuildability enum class Action(val message: String) { @@ -13,7 +14,8 @@ enum class Action(val message: String) { PLAY_2("Pick the first card you want to play or discard. Note that you have the ability to play these 2 last cards. You will choose how to play the last one during your next turn."), PLAY_LAST("You have the special ability to play your last card. Choose how you want to play it."), PICK_NEIGHBOR_GUILD("Choose a Guild card (purple) that you want to copy from one of your neighbours."), - WAIT("Please wait for other players to perform extra actions.") + WAIT("Please wait for other players to perform extra actions."), + WATCH_SCORE("The game is over! Look at the scoreboard to see the final ranking!") } @Serializable @@ -23,7 +25,8 @@ data class PlayerTurnInfo( val action: Action, val hand: List<HandCard>?, val preparedMove: PlayedMove?, - val neighbourGuildCards: List<TableCard> + val neighbourGuildCards: List<TableCard>, + val scoreBoard: ScoreBoard? = null ) { val currentAge: Int = table.currentAge val message: String = action.message |