diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuildingPropertyCard.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuildingPropertyCard.java index b78e7eb..aee5566 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuildingPropertyCard.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/popups/BuildingPropertyCard.java @@ -19,10 +19,20 @@ import pp.monopoly.notification.Sound; * BuildingPropertyCard creates the popup for field information */ public class BuildingPropertyCard extends Dialog { + /** Reference to the Monopoly application instance. */ private final MonopolyApp app; + + /** Main container for the building property information. */ private final Container buildingPropertyContainer; + + /** Background container providing a border for the property card. */ private final Container backgroundContainer; + /** + * Constructs a property card popup displaying details about the building property. + * + * @param app the Monopoly application instance + */ public BuildingPropertyCard(MonopolyApp app) { super(app.getDialogManager()); this.app = app; @@ -99,7 +109,7 @@ public class BuildingPropertyCard extends Dialog { } /** - * Schließt das Menü und entfernt die GUI-Elemente. + * Closes the popup and removes the associated GUI elements. */ @Override public void close() { @@ -108,6 +118,9 @@ public class BuildingPropertyCard extends Dialog { super.close(); } + /** + * Opens the settings menu when the escape key is pressed. + */ @Override public void escape() { new SettingsMenu(app).open();