diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java index bcc1bd7..d4a7924 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/MonopolyApp.java @@ -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); + } } /**