diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-13 16:45:33 +0100 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2021-02-13 16:45:33 +0100 |
commit | 6afecee45d8e46b695f7f22894fef3effc15a2b7 (patch) | |
tree | 88865b84e8cb829cc1294b7a04dc18928145c7b7 /sw-bot/src | |
parent | Remove unnecessary settings param (diff) | |
download | seven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.tar.gz seven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.tar.bz2 seven-wonders-6afecee45d8e46b695f7f22894fef3effc15a2b7.zip |
Rename some client functions
Diffstat (limited to 'sw-bot/src')
-rw-r--r-- | sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt | 6 |
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) } |