This commit is contained in:
Johannes Schmelz 2024-11-23 17:42:51 +01:00
parent 895bea048c
commit 44c55ce3a6
4 changed files with 13 additions and 10 deletions

View File

@ -17,7 +17,10 @@ import pp.dialog.DialogBuilder;
import pp.dialog.DialogManager;
import pp.graphics.Draw;
import pp.monopoly.client.gui.*;
import pp.monopoly.client.gui.popups.BuildingPropertyCard;
import pp.monopoly.client.gui.popups.BuyCard;
import pp.monopoly.client.gui.popups.FoodFieldCard;
import pp.monopoly.client.gui.popups.GateFieldCard;
import pp.monopoly.game.client.ClientGameLogic;
import pp.monopoly.game.client.MonopolyClient;
import pp.monopoly.game.client.ServerConnection;
@ -47,8 +50,8 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga
// TODO Temp später entfernen
private BuildingPropertyCard buildingProperty;
private FoodField foodField;
private GateField gateField;
private FoodFieldCard foodField;
private GateFieldCard gateField;
private BuyCard buyCard;
private boolean isBuyCardPopupOpen = false;
private final ActionListener BListener = (name, isPressed, tpf) -> handleB(isPressed);
@ -166,7 +169,7 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga
} else {
// Öffne das SettingsMenu
System.out.println("Öffne BuyCardPopup...");
gateField = new GateField(this);
gateField = new GateFieldCard(this);
gateField.open();
setBuyCardPopupOpen(true);
}

View File

@ -1,4 +1,4 @@
package pp.monopoly.client.gui;
package pp.monopoly.client.gui.popups;
import com.jme3.material.Material;
import com.jme3.material.RenderState.BlendMode;

View File

@ -1,4 +1,4 @@
package pp.monopoly.client.gui;
package pp.monopoly.client.gui.popups;
import com.jme3.material.Material;
import com.jme3.material.RenderState.BlendMode;
@ -16,13 +16,13 @@ import pp.monopoly.client.MonopolyApp;
/**
* SettingsMenu ist ein Overlay-Menü, das durch ESC aufgerufen werden kann.
*/
public class FoodField extends Dialog {
public class FoodFieldCard extends Dialog {
private final MonopolyApp app;
private final Geometry overlayBackground;
private final Container settingsContainer;
private final Container backgroundContainer;
public FoodField(MonopolyApp app) {
public FoodFieldCard(MonopolyApp app) {
super(app.getDialogManager());
this.app = app;

View File

@ -1,4 +1,4 @@
package pp.monopoly.client.gui;
package pp.monopoly.client.gui.popups;
import com.jme3.material.Material;
import com.jme3.material.RenderState.BlendMode;
@ -16,13 +16,13 @@ import pp.monopoly.client.MonopolyApp;
/**
* SettingsMenu ist ein Overlay-Menü, das durch ESC aufgerufen werden kann.
*/
public class GateField extends Dialog {
public class GateFieldCard extends Dialog {
private final MonopolyApp app;
private final Geometry overlayBackground;
private final Container settingsContainer;
private final Container backgroundContainer;
public GateField(MonopolyApp app) {
public GateFieldCard(MonopolyApp app) {
super(app.getDialogManager());
this.app = app;