Spiel controller (#22)

* spielcontroller

* refactoring

* added http server for frontend

* added javaFx
This commit is contained in:
Valentin Heiserer
2024-04-16 18:40:20 +02:00
committed by GitHub
parent d4deabfde9
commit fb7ae31a0d
62 changed files with 504 additions and 249 deletions

View File

@@ -30,23 +30,23 @@ public class FrontendEndpoint extends WebSocketAdapter {
System.out.println("Received TEXT message:" + message);
if (message.contains("startsimulation")) {
backendServer.startSchafkopfGame();
backendServer.schafkopfGame.startGame();
}
if (message.contains("stopsimulation")) {
backendServer.stopSchafkopfGame();
backendServer.schafkopfGame.stopGame();
}
if (message.contains("showtrumpf")) {
backendServer.showTrumpf();
backendServer.schafkopfGame.showTrumpf();
}
if (message.contains("showfarben")) {
backendServer.showFarbe();
backendServer.schafkopfGame.showFarbe();
}
if (message.contains("setgame")) {
backendServer.setGame(message);
backendServer.schafkopfGame.setGame(message);
}
}