mirror of
https://github.com/Vale54321/schafkopf-bot.git
synced 2025-12-16 19:59:33 +01:00
Spiel controller (#22)
* spielcontroller * refactoring * added http server for frontend * added javaFx
This commit is contained in:
committed by
GitHub
parent
d4deabfde9
commit
fb7ae31a0d
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user