summaryrefslogtreecommitdiff
path: root/sw-server/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'sw-server/src/main')
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/actions/PrepareMoveAction.kt2
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/actions/UpdateSettingsAction.kt2
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/controllers/GameController.kt6
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/lobby/Lobby.kt9
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/lobby/Player.kt2
-rw-r--r--sw-server/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt2
6 files changed, 12 insertions, 11 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/actions/PrepareMoveAction.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/actions/PrepareMoveAction.kt
index 6b39c486..ed420cfc 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/actions/PrepareMoveAction.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/actions/PrepareMoveAction.kt
@@ -3,7 +3,7 @@ package org.luxons.sevenwonders.actions
import org.hildan.livedoc.core.annotations.types.ApiType
import org.hildan.livedoc.core.annotations.types.ApiTypeProperty
import org.luxons.sevenwonders.doc.Documentation
-import org.luxons.sevenwonders.game.api.PlayerMove
+import org.luxons.sevenwonders.model.PlayerMove
/**
* The action to prepare the next move during a game.
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/actions/UpdateSettingsAction.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/actions/UpdateSettingsAction.kt
index d13e5b45..33303044 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/actions/UpdateSettingsAction.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/actions/UpdateSettingsAction.kt
@@ -3,7 +3,7 @@ package org.luxons.sevenwonders.actions
import org.hildan.livedoc.core.annotations.types.ApiType
import org.hildan.livedoc.core.annotations.types.ApiTypeProperty
import org.luxons.sevenwonders.doc.Documentation
-import org.luxons.sevenwonders.game.api.CustomizableSettings
+import org.luxons.sevenwonders.model.CustomizableSettings
/**
* The action to update the settings of the game. Can only be called in the lobby by the owner of the game.
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 132efd54..a46cb18d 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
@@ -4,9 +4,9 @@ import org.hildan.livedoc.core.annotations.Api
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.ApiTable
-import org.luxons.sevenwonders.game.api.cards.CardBack
+import org.luxons.sevenwonders.engine.Game
+import org.luxons.sevenwonders.model.ApiTable
+import org.luxons.sevenwonders.model.cards.CardBack
import org.luxons.sevenwonders.lobby.Player
import org.luxons.sevenwonders.repositories.PlayerRepository
import org.slf4j.LoggerFactory
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/lobby/Lobby.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/lobby/Lobby.kt
index 08249193..4b9f5bc3 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/lobby/Lobby.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/lobby/Lobby.kt
@@ -1,8 +1,8 @@
package org.luxons.sevenwonders.lobby
-import org.luxons.sevenwonders.game.Game
-import org.luxons.sevenwonders.game.api.CustomizableSettings
-import org.luxons.sevenwonders.game.data.GameDefinition
+import org.luxons.sevenwonders.engine.Game
+import org.luxons.sevenwonders.model.CustomizableSettings
+import org.luxons.sevenwonders.engine.data.GameDefinition
enum class State {
LOBBY, PLAYING
@@ -16,7 +16,8 @@ class Lobby(
) {
private val players: MutableList<Player> = ArrayList(gameDefinition.maxPlayers)
- var settings: CustomizableSettings = CustomizableSettings()
+ var settings: CustomizableSettings =
+ CustomizableSettings()
var state = State.LOBBY
private set
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/lobby/Player.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/lobby/Player.kt
index d6e9b344..d057fcb2 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/lobby/Player.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/lobby/Player.kt
@@ -1,7 +1,7 @@
package org.luxons.sevenwonders.lobby
import org.luxons.sevenwonders.errors.ApiMisuseException
-import org.luxons.sevenwonders.game.Game
+import org.luxons.sevenwonders.engine.Game
class Player(
val username: String,
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt
index 768aa659..02866ffc 100644
--- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt
+++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/repositories/LobbyRepository.kt
@@ -1,6 +1,6 @@
package org.luxons.sevenwonders.repositories
-import org.luxons.sevenwonders.game.data.GameDefinition
+import org.luxons.sevenwonders.engine.data.GameDefinition
import org.luxons.sevenwonders.lobby.Lobby
import org.luxons.sevenwonders.lobby.Player
import org.springframework.beans.factory.annotation.Autowired
bgstack15