From 134199b98baf70e4b014f92ff5c082b247aa407c Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sat, 4 Apr 2020 19:11:01 +0200 Subject: Add a way to "unprepare" a move --- sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw-engine/src') diff --git a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt index 5a75516c..25f1de6d 100644 --- a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt +++ b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/Game.kt @@ -93,6 +93,10 @@ class Game internal constructor( return card.back } + fun unprepareMove(playerIndex: Int) { + preparedMoves.remove(playerIndex) + } + /** * Returns true if all players that had to do something have [prepared their move][prepareMove]. This means we are * ready to [play the current turn][playTurn]. -- cgit