board visible again

This commit is contained in:
Johannes Schmelz 2024-11-25 05:16:24 +01:00
parent bd725e2dc4
commit dfdbcdc9f3

View File

@ -136,6 +136,7 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga
private boolean isBuyCardPopupOpen = false;
private final ActionListener BListener = (name, isPressed, tpf) -> handleB(isPressed);
private final ActionListener TListener = (name, isPressed, tpf) -> handleT(isPressed);
private TestWorld testWorld;
static {
// Configure logging
@ -296,8 +297,8 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga
//logik zum wechselnden erscheinen und verschwinden beim drücken von B //TODO süäter entfernen
private void handleT(boolean isPressed) {
if (isPressed) {
TestWorld tmp = new TestWorld(this);
tmp.initializeScene();
testWorld = new TestWorld(this);
testWorld.initializeScene();
}
}
@ -350,6 +351,11 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga
super.simpleUpdate(tpf);
dialogManager.update(tpf);
logic.update(tpf);
//TODO testing replace later
if (testWorld != null) {
testWorld.update(tpf);
}
}
/**