Commit Graph

189 Commits

Author SHA1 Message Date
Seraina
460f4fb9ea Added two methods to ClientHandler that send messages to multiple lobbies, this is needed for the gui interaction with multiple clients 2022-04-30 14:36:47 +02:00
Seraina
fb730006f8 Added some todo's to not lose the overview 2022-04-30 13:17:53 +02:00
Seraina
a6e412f552 Wrapped printToGUI method contents in try-catch block, in case the fx components haven't been initialized yet 2022-04-30 13:16:05 +02:00
Seraina
30aab3768d Implemented communication between Server and Client to display a notification if someone else heard a noise 2022-04-29 21:27:32 +02:00
Seraina
d963c35965 Added ImageViews for noise Bell 2022-04-29 20:56:04 +02:00
Seraina
c5293bc8ee Implemented the gameState Update parameter of the the printToGUI message in client, with its needed methods 2022-04-29 18:56:15 +02:00
Seraina
f058eabb75 Cherry-picked my own commit from master, because I messed up the branch creation, recommitting it on this one 2022-04-29 17:13:15 +02:00
Seraina
ba03095647 Added a PTGUI protocol message and class with all parameters for that message, to link gui to server 2022-04-29 17:07:40 +02:00
Seraina
dd757b22f0 Added a PTGUI protocol message and class with all parameters for that message, to link gui to server 2022-04-29 16:48:02 +02:00
Seraina
384f2071d2 Merge remote-tracking branch 'origin/master' 2022-04-28 18:31:29 +02:00
Jonas
96812a04ae High score fully implemented. 2022-04-28 15:29:36 +02:00
Seraina
8479479b49 Started adding a GameStateModel for the client to where primitive but needed data can be stored. 2022-04-28 13:46:28 +02:00
Seraina
79f5cb407f Started fleshing out the game GUI, with its controller and fxml 2022-04-28 13:45:26 +02:00
Sebastian Lenzlinger
b769991c36 Minor Changes to ChatController adding a TODO and created a LobbyListItem class to represent members of the lobby list view, or at least the data therein. 2022-04-28 13:41:45 +02:00
Sebastian Lenzlinger
2bc79b53a7 Adding Wrapper Classes for Controlls and corresponding EventHandlers. added different fxml views. 2022-04-28 12:04:08 +02:00
Seraina
26dffdbbdc Merge remote-tracking branch 'origin/master' 2022-04-28 10:50:04 +02:00
Seraina
f5008ca1cc Added GameController Skeleton for the control of the Game controls 2022-04-28 09:41:04 +02:00
Sebastian Lenzlinger
ee000c73fa updated ChatView.fxml and it's corresponding controller to new design
added LobbyListView and corresponding controller class skeleton
2022-04-27 21:17:24 +02:00
Jonas
743ac7b1c4 Uploaded Presentation 2022-04-20 16:43:51 +02:00
Jonas
814eed9442 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	src/main/java/ch/unibas/dmi/dbis/cs108/gamelogic/Game.java
#	src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/client/gui/chat/ChatApp.java
2022-04-18 22:42:09 +02:00
Jonas
1247bc2035 closing lobby during game adds game to finished games list. 2022-04-18 22:39:10 +02:00
Seraina
55147ce1cf went over all classes and added docs where is appropriate and needed 2022-04-18 21:57:33 +02:00
Jonas
c89eb7c5de Chat adjustments:
-Multiple lines are now cut off before sending, and are not printed to sender chat
-"something went wrong while whispering" is now printed to chat rather than console
-Chat message is sent to lobby rather than broadcast, from the start
-whispering person sees who they whisper to
2022-04-18 20:17:24 +02:00
Sebastian Lenzlinger
e9a4a61737 Reformatted to googlestyle and now gui colorcodes if you whisper and differentiates for all 2022-04-18 15:27:27 +02:00
Sebastian Lenzlinger
8926eaa8f8 CHATA now doesn't send chatmsg to sender gui 2022-04-18 15:01:03 +02:00
Sebastian Lenzlinger
5e50905f81 msg wont be sent to self from server now even when not in lobby 2022-04-18 14:49:37 +02:00
Seraina
414da07a09 Merge remote-tracking branch 'origin/master' 2022-04-18 13:44:32 +02:00
Seraina
1257d102b8 Handled NullPointerException in closeLobby 2022-04-18 13:43:57 +02:00
Jonas
40c528612b Merge remote-tracking branch 'origin/master' 2022-04-17 21:13:10 +02:00
Jonas
b717a73a38 Added human-readable protocol. 2022-04-17 21:12:22 +02:00
Seraina
08f9f44fab Added javadoc statements to loads of methods where there was a warning 2022-04-17 20:41:31 +02:00
Jonas
bf31670ec1 tried to implement build-cs108 task 2022-04-17 20:07:15 +02:00
Seraina
bc77f5dad2 Ensured Client username updating in ClientModle for ui 2022-04-17 17:22:15 +02:00
Seraina
8c9d40a6d8 Changed default cmd to CHATA 2022-04-17 17:21:11 +02:00
Sebastian Lenzlinger
ce4d84c9d7 Server shouldn't be sending chat messages back to the sender now 2022-04-17 16:31:43 +02:00
Sebastian Lenzlinger
ef8111553e whisper chat messages now have a different background color than normal messages 2022-04-17 16:28:10 +02:00
Sebastian Lenzlinger
61697d7597 whisper is functional in with gui. decode whisper msg added to client handler and used in JServerProtcolParser now to correctly decode the messages 2022-04-17 15:38:40 +02:00
Seraina
dad2cf1cd8 Merge remote-tracking branch 'origin/SerainaGui' into SerainaGui 2022-04-17 15:11:28 +02:00
Seraina
6ebc4495e7 Added a networking process that updates the username in the ChatController of the ClientModel 2022-04-17 15:11:01 +02:00
Sebastian Lenzlinger
74fdca0efd added whisper functionality for whisper in ClientHandler and Gui and deleted old recources that aren't needed. 2022-04-17 15:06:24 +02:00
Seraina
28b0c08ddb Added ChatController to the running application 2022-04-17 14:33:55 +02:00
Seraina
edf5c65da2 Added static field to ChatApp and set it to the current application in the start() 2022-04-17 14:05:38 +02:00
Sebastian Lenzlinger
7ba20a9f62 lamdas were a bad idea 2022-04-17 12:14:16 +02:00
Sebastian Lenzlinger
cb8dc1c56a Revert "worked through a few warnings, changed a few anonymous classes to lambdas"
This reverts commit 660883f732
2022-04-17 10:12:58 +00:00
Sebastian Lenzlinger
660883f732 worked through a few warnings, changed a few anonymous classes to lambdas 2022-04-17 11:35:16 +02:00
Seraina
4bd9038146 Removed root from fxlm file, added constructor with no parameters to ChatController-> for some reason this gets called
now the window pops up, but it cant communicate
2022-04-17 10:55:58 +02:00
Seraina
8e12e6e662 Some minor adjustments that localize the problem of GUI in fxlm file itself (root not correctly set?) I moved the fxml file to a spot, where gradle expects it 2022-04-16 23:28:52 +02:00
Seraina
88f72d7612 Added a way to end a game, when its lobby is closed. 2022-04-16 21:34:36 +02:00
Sebastian Lenzlinger
f7324f2300 added needed javafx modules to build since I'm getting the following message at runtime:
"JavaFX runtime components are missing, and are required to run this application"
2022-04-16 17:06:27 +02:00
Sebastian Lenzlinger
0270202c3f Extending functionality to connect the incoming msgs to the gui via buffered readers. 2022-04-16 16:05:21 +02:00