diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-04-08 00:53:46 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-04-08 00:54:08 +0200 |
commit | b454850bbb6db19cc387b52dce5c1dfd1aecc21b (patch) | |
tree | 64d0dc97c0801711df0094cd04695bc3332bc7c1 /sw-server/src/main | |
parent | Fix tests (diff) | |
download | seven-wonders-b454850bbb6db19cc387b52dce5c1dfd1aecc21b.tar.gz seven-wonders-b454850bbb6db19cc387b52dce5c1dfd1aecc21b.tar.bz2 seven-wonders-b454850bbb6db19cc387b52dce5c1dfd1aecc21b.zip |
Add "leave lobby" button
Resolves:
https://github.com/joffrey-bion/seven-wonders/issues/8
Diffstat (limited to 'sw-server/src/main')
-rw-r--r-- | sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt index ee1c6271..403a4696 100644 --- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/controllers/LobbyController.kt @@ -33,8 +33,7 @@ class LobbyController @Autowired constructor( /** * Leaves the current lobby. * - * @param principal - * the connected user's information + * @param principal the connected user's information */ @MessageMapping("/lobby/leave") fun leave(principal: Principal) { @@ -52,10 +51,8 @@ class LobbyController @Autowired constructor( /** * Reorders the players in the current lobby. This can only be done by the lobby's owner. * - * @param action - * the action to reorder the players - * @param principal - * the connected user's information + * @param action the action to reorder the players + * @param principal the connected user's information */ @MessageMapping("/lobby/reorderPlayers") fun reorderPlayers(@Validated action: ReorderPlayersAction, principal: Principal) { @@ -69,10 +66,8 @@ class LobbyController @Autowired constructor( /** * Updates the game settings. This can only be done by the lobby's owner. * - * @param action - * the action to update the settings - * @param principal - * the connected user's information + * @param action the action to update the settings + * @param principal the connected user's information */ @MessageMapping("/lobby/updateSettings") fun updateSettings(@Validated action: UpdateSettingsAction, principal: Principal) { @@ -93,8 +88,7 @@ class LobbyController @Autowired constructor( /** * Starts the game. * - * @param principal - * the connected user's information + * @param principal the connected user's information */ @MessageMapping("/lobby/startGame") fun startGame(principal: Principal) { |