Commit Graph

446 Commits

Author SHA1 Message Date
Jona Walpert 76e62b3cff Feat: Accept ClientService and delegate to LobbyClient
Add constructor overload that accepts ClientService and constructs a LobbyClient.
Avoids implicit host/port lookup in UI code; caller controls network config.
Keeps rendering/status behavior unchanged (async updates, deterministic ordering).
2026-04-02 22:26:14 +02:00
Jona Walpert 1070b5d4b9 Chore(startup): Propagate server ip:port to UI via system properties
ClientApp.start parses <ip>:<port>, sets `casono.server.host` / `casono.server.port` and forwards the original launch arg to the JavaFX launcher.
Casinomainui reads JavaFX launch args and exposes the same system properties.
CasinomainuiController reads those properties and constructs `ClientService(host, port)` (no hardcoded defaults)."
2026-04-02 22:12:48 +02:00
Jona Walpert 4daf6ff4a2 Fix: Sort button IDs before iterating map for deterministic rendering
Copy mapping.keySet() to a List and call Collections.sort(...) before iterating.
Ensures stable button placement and reproducible image updates (render + update)
2026-04-02 22:00:18 +02:00
Jona Walpert 3153f7027d fix: temporyy fix for NPE and wrong naming 2026-04-02 18:50:20 +02:00
Jona Walpert b5d19d915b Add: first (non functioning) modified version of lobby button controlelr with abckend conenction 2026-04-02 16:31:27 +02:00
Julian Kropff 77c7f7c0a5 Add: initial client structure for game and network 2026-04-02 16:08:24 +02:00
Lars Simon Winzer 93dba00a4d Style: Apply Spotless 2026-04-02 15:02:58 +02:00
Lars Simon Winzer de11d673dc Docs: Write JavaDoc for added components 2026-04-02 15:02:00 +02:00
Lars Simon Winzer 72e3d257ff Add: Register CheckUsernameHandler in composition root 2026-04-02 14:35:56 +02:00
Lars Simon Winzer 5ef2fa5df1 Refactor: Change UsernameAvailability from public to package-private access 2026-04-02 14:34:24 +02:00
Lars Simon Winzer 5fa478c440 Add: CheckUsernameHandler getting User from UserRegistry and determining availablity 2026-04-02 14:33:59 +02:00
Lars Simon Winzer 9087f009d3 Add: CheckUsernameResponse containing username availability field 2026-04-02 14:33:26 +02:00
Lars Simon Winzer bfbf4b2015 Add: UsernameAvailability enum with availability states 2026-04-02 14:28:56 +02:00
Lars Simon Winzer ea26e371c2 Merge branch 'main' into 'feat/39-add-serverside-check-nick-command' 2026-04-02 14:24:32 +02:00
Lars Simon Winzer 415ad754df Style: Apply Spotless 2026-04-02 14:18:09 +02:00
Lars Simon Winzer a9878da3f2 Docs: Write JavaDoc for changed components 2026-04-02 14:17:45 +02:00
Lars Simon Winzer f91fa698f3 Refactor: Rename user lookup methods from 'find' to 'get' prefix 2026-04-02 14:12:13 +02:00
Lars Simon Winzer 5b70fb89ef Add: Implement methods to find users by UserId and username 2026-04-02 14:11:14 +02:00
Lars Simon Winzer 7a9114045f Merge branch 'main' into 'feat/39-add-serverside-check-nick-command' 2026-04-02 13:50:39 +02:00
Lars Simon Winzer 528a40b394 Style: Apply Spotless 2026-04-02 13:45:14 +02:00
Lars Simon Winzer f95d9174f1 Add: Handle MissingParameterException in SessionReader and respond to request 2026-04-02 13:44:51 +02:00
Lars Simon Winzer 07587340d4 Add: Register CheckUsernameParser in composition root 2026-04-02 13:30:22 +02:00
Lars Simon Winzer 3b44e58505 Add: CheckUsernameParser to check for required parameter 2026-04-02 13:26:27 +02:00
Lars Simon Winzer 35c8590c57 Add: CheckUsernameRequest containing username to check for availability 2026-04-02 13:10:01 +02:00
Lars Simon Winzer 10347b3ed4 Style: Correct method naming 2026-04-02 12:43:05 +02:00
Lars Simon Winzer 87b2dcfc2c Docs: Add JavaDoc to newly added components 2026-04-02 12:27:11 +02:00
Lars Simon Winzer 707477bd73 Add: Integrate PingParser and PingHandler into helper function in composition root 2026-04-02 12:15:01 +02:00
Lars Simon Winzer dafa95af41 Add: PingHandler to execute PingRequest and dispatch Response 2026-04-02 12:09:29 +02:00
Lars Simon Winzer b445b019a1 Add: PingParser to parse PrimitiveRequest into PingRequest 2026-04-02 12:09:01 +02:00
Lars Simon Winzer 92a2ffe054 Add: PingRequest for ping request 2026-04-02 12:08:40 +02:00
Mathis Ginkel 6f80501ea2 Add: CoreClient and ChatClient 2026-04-02 11:16:40 +02:00
Mathis Ginkel 3427c661cf Merge branch 'feat/client-chat' into feat/client-communication
# Conflicts:
#	src/main/java/ch/unibas/dmi/dbis/cs108/casono/client/ui/chatui/ChatController.java
2026-04-02 10:31:28 +02:00
Mathis Ginkel ff07843e0a Fix: small changes in ClientService 2026-04-02 10:22:51 +02:00
Mathis Ginkel cc33411911 Add: basic chat functionality 2026-04-02 10:20:03 +02:00
Jona Walpert 120b55f5cc Merge branch 'feat/ui-images' into 'main'
Feat/ui images

See merge request cs108-fs26/Gruppe-13!70
2026-04-01 16:24:48 +00:00
Jona Walpert 5dd620116a Chore: Move old poker chip images to old_images folder 2026-04-01 18:21:17 +02:00
Jona Walpert f4c20e1725 Chore: Rename chip images to lobby button naming scheme 2026-04-01 18:18:25 +02:00
Julian Kropff 0c6595a58b Add: red poker chip images 2026-04-01 17:41:05 +02:00
Julian Kropff 936463c8f1 Add: green poker chip images 2026-04-01 17:40:55 +02:00
Jona Walpert 983f2cca5e Style: fix checkstyle errors 2026-04-01 14:24:34 +02:00
Jona Walpert 56ba5b81ae Docs: translate client side components to english. This includes comments and javaDoc 2026-04-01 13:48:24 +02:00
Julian Kropff c600b6422d Style: translate comments to english 2026-04-01 13:37:51 +02:00
Julian Kropff 01a72a6719 Style: translate comments to english 2026-04-01 13:02:14 +02:00
Lars Simon Winzer 3b7b53d973 Style: Apply Spotless 2026-04-01 12:49:56 +02:00
Lars Simon Winzer df0f8ca44c Add: Handle ResponseDispatchException in SessionReader 2026-04-01 12:49:07 +02:00
Lars Simon Winzer ae98334c56 Docs: Modify JavaDoc to match changes 2026-04-01 12:46:51 +02:00
Lars Simon Winzer 4deeace547 Refactor: dispatch method of ResponseDispatcher is now unchecked and throws ResponseDispatchException 2026-04-01 12:46:14 +02:00
Lars Simon Winzer 68e8bc76b2 Add: Wrapper ResponseDispatchException for ResponseDispatcher 2026-04-01 12:44:37 +02:00
Jona Walpert cb65ad2ed0 Merge branch 'feat/ui-switch-lobby-game' into 'main'
Feat/ui switch lobby game

See merge request cs108-fs26/Gruppe-13!66
2026-04-01 10:34:31 +00:00
Jona Walpert 1d322f5cd8 Style: Fix checkstyle for failed pipeline 2026-04-01 12:31:58 +02:00