summaryrefslogtreecommitdiff
path: root/sw-server/src/main
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2019-05-22 03:00:54 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2019-05-22 03:00:54 +0200
commit4a328a310384300e00527bbcbdaa9efbc4453547 (patch)
tree2f09067d2681bc199ef686722a617df5b30a7150 /sw-server/src/main
parentReorganize packages again (diff)
downloadseven-wonders-4a328a310384300e00527bbcbdaa9efbc4453547.tar.gz
seven-wonders-4a328a310384300e00527bbcbdaa9efbc4453547.tar.bz2
seven-wonders-4a328a310384300e00527bbcbdaa9efbc4453547.zip
Use import aliases to remove annoying prefixes
Diffstat (limited to 'sw-server/src/main')
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt6
1 files changed, 3 insertions, 3 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 a46cb18d..a923f845 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.engine.Game
-import org.luxons.sevenwonders.model.ApiTable
+import org.luxons.sevenwonders.model.GameState
import org.luxons.sevenwonders.model.cards.CardBack
import org.luxons.sevenwonders.lobby.Player
import org.luxons.sevenwonders.repositories.PlayerRepository
@@ -88,8 +88,8 @@ class GameController @Autowired constructor(
}
}
- private fun sendPlayedMoves(gameId: Long, table: ApiTable) =
- template.convertAndSend("/topic/game/$gameId/tableUpdates", table)
+ private fun sendPlayedMoves(gameId: Long, gameState: GameState) =
+ template.convertAndSend("/topic/game/$gameId/tableUpdates", gameState)
private fun sendPreparedCard(gameId: Long, preparedCard: PreparedCard) =
template.convertAndSend("/topic/game/$gameId/prepared", preparedCard)
bgstack15