From 6be4b282381546060b2496b9ea9c9c7318d63247 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Fri, 15 May 2020 01:20:40 +0200 Subject: Send score at end of game --- .../src/commonMain/kotlin/org/luxons/sevenwonders/model/Moves.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sw-common-model/src/commonMain/kotlin/org') 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?, val preparedMove: PlayedMove?, - val neighbourGuildCards: List + val neighbourGuildCards: List, + val scoreBoard: ScoreBoard? = null ) { val currentAge: Int = table.currentAge val message: String = action.message -- cgit