579 Commits

Author SHA1 Message Date
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
Sebastian Lenzlinger
504aa9aef2 Commit to make sure everything is here as I accidentally deleted large portions of my local code. 2022-04-16 14:28:02 +02:00
Seraina
8e434e3e14 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/server/Lobby.java
2022-04-16 13:15:28 +02:00
Seraina
b76d57a407 Worked on game logic:
- Spectators now get all information
- votes for kicked off people don't count
2022-04-16 13:13:20 +02:00
Jonas
2f34de0136 Merge remote-tracking branch 'origin/master' 2022-04-16 12:45:36 +02:00
Jonas
b454cbee96 implemented Lobby.gameIsRunning, Lobby.getLobbyIsOpen updates on method call and considers both the number of players in the lobby as well as whether a game has already started in that lobby. 2022-04-16 12:45:24 +02:00
Sebastian Lenzlinger
3880b3f14f ChatController fields slowly all initialized. 2022-04-16 12:41:14 +02:00
Seraina
22715e038d Worked on game logic:
-Ensured that votes of kicked off people don't count
- Ensured that kicked off people don't get reentered in the game via gostification
- fleshed out the Spectator class a litte
2022-04-16 12:06:58 +02:00
Sebastian Lenzlinger
b30f44df6c Added ChatApp class, ChatController class and the fxml representing the view of the chat gui. 2022-04-16 10:49:40 +02:00
Sebastian Lenzlinger
6986a9906f deleted unused classes 2022-04-16 10:41:41 +02:00
Seraina
d389a8fbb0 Removed some ToDos that are done and started creating a Spectator class and I'm in the process of ensuring only non kicked off passengers vote 2022-04-15 23:22:38 +02:00
Seraina
82a4e42b3c OG Ghost position is now truly randomized 2022-04-15 19:38:42 +02:00
Seraina
853f33479f Added class names manually to all LogManager.getLogger(ClassName.class) instances
Now Jar is runnable
2022-04-15 19:10:28 +02:00
Seraina
7c70b276cd /z now lists all games opened and closed
also fixed two bugs in VoteHandler (Array out of Bound in GhostNPC and in ClientVoteData)
2022-04-15 18:47:05 +02:00
Seraina
1ba30663be Lobby has now a parameter that indicates if the lobby is still open or if the game has already started.
only the admin can start a game and only one game per lobby can be started
2022-04-15 17:24:51 +02:00
Seraina
5b0004f8ff Games have names now 2022-04-15 16:40:26 +02:00
Sebastian Lenzlinger
85fca301ff Merge remote-tracking branch 'origin/master' 2022-04-14 16:26:07 +02:00
Sebastian Lenzlinger
13e8002d79 Added GuiChat fxml file 2022-04-14 16:25:59 +02:00
Seraina
2f79b41618 Avoided null pointer exception by adding an if statement 2022-04-14 15:05:00 +02:00
Seraina
b37916134a Merge remote-tracking branch 'origin/master' 2022-04-14 14:57:17 +02:00
Seraina
44a534bafa Game can now handle a name change and an exit by a client 2022-04-14 14:56:25 +02:00
Sebastian Lenzlinger
3290009640 Merge remote-tracking branch 'origin/master' 2022-04-14 14:02:36 +02:00
Sebastian Lenzlinger
17783cb591 Merged Onto Master 2022-04-14 14:02:27 +02:00
Alexandr Sazonov
b202a6aa45 Updated game manual to describe only already implemented game features. Content might be good enough for final version, design has to be improved. 2022-04-14 11:57:52 +00:00
Seraina
a0a82f8f8c Merge remote-tracking branch 'origin/master' 2022-04-14 13:28:59 +02:00
Jonas
004f70ba44 Implemented starting everything from NightTrainToBudapest class. 2022-04-14 13:19:23 +02:00
Sebastian Lenzlinger
5a36988cd2 Merge branch 'guiSeb' into 'master'
Client GUI Application Elements, namely the Chat

See merge request cs108-fs22/Gruppe-8!3
2022-04-14 10:53:46 +00:00
Alexandr Sazonov
7889614874 Update Diary.txt 2022-04-14 10:51:43 +00:00
Alexandr Sazonov
8183d2b9da First version of game manual 2022-04-14 10:41:45 +00:00
Seraina
0dbc3093e2 New game started from outside of lobby has been handled 2022-04-14 12:20:04 +02:00
Seraina
33d9ea899e Adjusted game logic to lobbies, now a game is started inside a lobby and only sends msg to clients in the respective lobby
TODO:
when a client leaves a lobby or the server, the corresponding passenger needs to be transformed into an npc
2022-04-14 11:59:28 +02:00
Seraina
682b2634fc Fixed an error in Game (other method name) 2022-04-14 09:42:58 +02:00
Seraina
d98ee434c8 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/client/Client.java
#	src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/helpers/Protocol.java
#	src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/server/ClientHandler.java
#	src/main/java/ch/unibas/dmi/dbis/cs108/multiplayer/server/JServerProtocolParser.java
2022-04-14 08:36:01 +02:00
Seraina
b8c970801c Merge branch 'SerainaSpiellogik' 2022-04-14 08:17:36 +02:00
Seraina
9299027bcd Had to redo the voteGetter: now it is handled via userInputListener and messageFormatter 2022-04-13 18:56:48 +02:00
Seraina
bc136d7b68 Fixed some bugs with the noise handeling, seems not work now
Still need to handle connection loss and name-change in gamelogic
2022-04-13 12:57:49 +02:00
Seraina
fc250da14b Merge remote-tracking branch 'origin/SerainaSpiellogik' into SerainaSpiellogik 2022-04-13 11:44:00 +02:00
Seraina
850e09e0af Integrated noise handling so it would run, some bugs still to work out 2022-04-13 11:43:35 +02:00
Sebastian Lenzlinger
a6d416e457 final tiny touch ups 2022-04-13 01:47:25 +02:00
Sebastian Lenzlinger
76e1ed3ff1 Added a missing return statement 2022-04-13 01:46:28 +02:00
Sebastian Lenzlinger
3e2288026b Further Building the scene 2022-04-13 01:45:32 +02:00
Sebastian Lenzlinger
e4f9776f7f Slowly building the SceneGraph from the bottom.
Created a abstract class that imlements the Toggle interface for toggling between who one wants to chat.
2022-04-13 01:07:49 +02:00
Sebastian Lenzlinger
68248c7175 (noch sehr kurzer) Dairy Update 2022-04-12 23:50:30 +02:00
Sebastian Lenzlinger
ca1256f01f Created Classes and Interfaces. Trying to adhere to the MVC pattern 2022-04-12 23:46:38 +02:00
Jonas
503808941b Deleted unused classes, implemented whisper chat, other small fixes & adjustments. 2022-04-12 22:16:34 +02:00
Jonas
8aad32bd2d Several small adjustments. Nothing major, pushing so i can continue coding on other PC 2022-04-12 20:04:23 +02:00
Jonas
920ea3fba9 Implemented broadcast to all clients across lobbies (/b), other small changes to chat & leaving lobbies:
-bugfix for LEAVL
-/c now defaults to message within lobby
-broadcast chat to lobby when called by someone outside lobby just broadcasts to all clients not in lobbies
2022-04-12 11:38:40 +02:00
Jonas
01b08e41b8 Implemented (almost) all required Lobby functionality. Also added Client_01 and CLient_02 for testing inside intelliJ 2022-04-11 23:05:39 +02:00
Jonas
33cbb4e57d Client Login into Lobby as well as creating a lobby now works and client can only be in one lobby at the same time. 2022-04-11 18:08:39 +02:00