mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-18 22:56:15 +01:00
added documentation for GulagInfo
This commit is contained in:
parent
a4c0afe277
commit
69ad19757d
@ -13,14 +13,27 @@ import pp.monopoly.message.client.NotificationAnswer;
|
|||||||
import pp.monopoly.notification.Sound;
|
import pp.monopoly.notification.Sound;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ConfirmTrade is a popup which appears when a trade is proposed to this certain player.
|
* GulagInfo is a popup that provides options for a player who is stuck in the "Gulag" (jail) field.
|
||||||
|
* <p>
|
||||||
|
* This dialog offers multiple actions, including paying a bribe, using a "Get Out of Jail" card, or waiting.
|
||||||
|
* </p>
|
||||||
*/
|
*/
|
||||||
public class GulagInfo extends Dialog {
|
public class GulagInfo extends Dialog {
|
||||||
|
/** Reference to the Monopoly application instance. */
|
||||||
private final MonopolyApp app;
|
private final MonopolyApp app;
|
||||||
|
|
||||||
|
/** Main container for the Gulag information dialog. */
|
||||||
private final Container gulagInfoContainer;
|
private final Container gulagInfoContainer;
|
||||||
|
|
||||||
|
/** Background container providing a styled border around the dialog. */
|
||||||
private final Container backgroundContainer;
|
private final Container backgroundContainer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs a GulagInfo popup that provides the player with options for getting out of the "Gulag" field.
|
||||||
|
*
|
||||||
|
* @param app the Monopoly application instance
|
||||||
|
* @param trys the number of failed attempts to roll doubles for release
|
||||||
|
*/
|
||||||
public GulagInfo(MonopolyApp app, int trys) {
|
public GulagInfo(MonopolyApp app, int trys) {
|
||||||
super(app.getDialogManager());
|
super(app.getDialogManager());
|
||||||
this.app = app;
|
this.app = app;
|
||||||
@ -104,7 +117,7 @@ public class GulagInfo extends Dialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Schließt das Menü und entfernt die GUI-Elemente.
|
* Closes the GulagInfo popup and removes its GUI elements.
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
@ -113,6 +126,9 @@ public class GulagInfo extends Dialog {
|
|||||||
super.close();
|
super.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handles the escape action to close the GulagInfo dialog.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void escape() {
|
public void escape() {
|
||||||
new SettingsMenu(app).open();
|
new SettingsMenu(app).open();
|
||||||
|
Loading…
Reference in New Issue
Block a user