summaryrefslogtreecommitdiff
path: root/sw-server/src
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2019-05-20 11:46:01 +0200
committerjbion <joffrey.bion@amadeus.com>2019-05-20 11:46:01 +0200
commit036fc87fa4759dca994964ede7732ffa9f6dd4a3 (patch)
tree2cbcb27e6abbafa8e9511379b172cf71ade73aec /sw-server/src
parentFix some tests (diff)
downloadseven-wonders-036fc87fa4759dca994964ede7732ffa9f6dd4a3.tar.gz
seven-wonders-036fc87fa4759dca994964ede7732ffa9f6dd4a3.tar.bz2
seven-wonders-036fc87fa4759dca994964ede7732ffa9f6dd4a3.zip
Move some declarations to a better place
Diffstat (limited to 'sw-server/src')
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt
index b37c9c7c..cd9cb732 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt
@@ -5,7 +5,7 @@ import org.luxons.sevenwonders.actions.PrepareMoveAction
import org.luxons.sevenwonders.api.PlayerDTO
import org.luxons.sevenwonders.api.toDTO
import org.luxons.sevenwonders.game.Game
-import org.luxons.sevenwonders.game.api.Table
+import org.luxons.sevenwonders.game.api.ApiTable
import org.luxons.sevenwonders.game.cards.CardBack
import org.luxons.sevenwonders.lobby.Player
import org.luxons.sevenwonders.repositories.PlayerRepository
@@ -88,7 +88,7 @@ class GameController @Autowired constructor(
}
}
- private fun sendPlayedMoves(gameId: Long, table: Table) =
+ private fun sendPlayedMoves(gameId: Long, table: ApiTable) =
template.convertAndSend("/topic/game/$gameId/tableUpdates", table)
private fun sendPreparedCard(gameId: Long, preparedCard: PreparedCard) =
bgstack15