summaryrefslogtreecommitdiff
path: root/sw-bot/src/main/kotlin/org/luxons
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-13 16:45:33 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-13 16:45:33 +0100
commit6afecee45d8e46b695f7f22894fef3effc15a2b7 (patch)
tree88865b84e8cb829cc1294b7a04dc18928145c7b7 /sw-bot/src/main/kotlin/org/luxons
parentRemove unnecessary settings param (diff)
downloadseven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.tar.gz
seven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.tar.bz2
seven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.zip
Rename some client functions
Diffstat (limited to 'sw-bot/src/main/kotlin/org/luxons')
-rw-r--r--sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt
index 611c6369..6a4a5bf6 100644
--- a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt
+++ b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt
@@ -52,9 +52,9 @@ class SevenWondersBot(
"Custom wonders don't match the number of players in the game"
}
- val lobby = session.createGameAndWaitLobby(gameName)
+ val lobby = session.createGameAndAwaitLobby(gameName)
otherBots.forEach {
- it.session.joinGameAndWaitLobby(lobby.id)
+ it.session.joinGameAndAwaitLobby(lobby.id)
}
customWonders?.let { session.reassignWonders(it) }
@@ -73,7 +73,7 @@ class SevenWondersBot(
}
suspend fun joinAndAutoPlay(gameId: Long): PlayerTurnInfo {
- val firstTurn = session.joinGameAndWaitFirstTurn(gameId)
+ val firstTurn = session.joinGameAndAwaitFirstTurn(gameId)
return autoPlayUntilEnd(firstTurn)
}
bgstack15