mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-04-12 04:31:07 +02:00
Compare commits
4 Commits
c2c22f9ae5
...
2aca94100e
Author | SHA1 | Date | |
---|---|---|---|
|
2aca94100e | ||
|
9e81fb8549 | ||
|
3c6e519e77 | ||
|
9be00ab848 |
@ -17,6 +17,7 @@ import pp.monopoly.model.fields.BuildingProperty;
|
||||
import pp.monopoly.model.fields.FoodField;
|
||||
import pp.monopoly.model.fields.GateField;
|
||||
import pp.monopoly.model.fields.PropertyField;
|
||||
import pp.monopoly.notification.Sound;
|
||||
|
||||
import java.text.Collator;
|
||||
import java.util.ArrayList;
|
||||
@ -78,7 +79,11 @@ public class PropertyOverviewMenu extends Dialog {
|
||||
// Add the "Zurück" button at the bottom
|
||||
Button backButton = mainContainer.addChild(new Button("Zurück", new ElementId("button")));
|
||||
backButton.setPreferredSize(new Vector3f(200, 60, 0));
|
||||
backButton.addClickCommands(source -> this.close());
|
||||
backButton.addClickCommands(source -> ifTopDialog( () -> {
|
||||
app.getGameLogic().playSound(Sound.BUTTON);
|
||||
close();
|
||||
|
||||
}));
|
||||
|
||||
// Attach the main container to the GUI node
|
||||
app.getGuiNode().attachChild(mainContainer);
|
||||
|
@ -107,7 +107,7 @@ public class ReceivedRent extends Dialog {
|
||||
|
||||
// Rent message
|
||||
Container textContainer = container.addChild(new Container());
|
||||
textContainer.addChild(new Label("Du bekommst von Spieler " + " " + playerName + " " + amount + " EUR Miete",
|
||||
textContainer.addChild(new Label(playerName+ " zahlt dir " + amount + " EUR Miete",
|
||||
new ElementId("label-Text")));
|
||||
textContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.4657f, 0.4735f, 0.4892f, 1.0f)));
|
||||
textContainer.setPreferredSize(container.getPreferredSize().addLocal(-250, -200, 0));
|
||||
|
@ -107,7 +107,7 @@ public class Rent extends Dialog {
|
||||
|
||||
// Rent message
|
||||
Container textContainer = container.addChild(new Container());
|
||||
textContainer.addChild(new Label("Du musst Spieler " + " " + playerName + " " + amount + " EUR Miete zahlen",
|
||||
textContainer.addChild(new Label("Du musst " + amount + " EUR Miete an " + playerName + " zahlen",
|
||||
new ElementId("label-Text")));
|
||||
textContainer.setBackground(new QuadBackgroundComponent(new ColorRGBA(0.4657f, 0.4735f, 0.4892f, 1.0f)));
|
||||
textContainer.setPreferredSize(container.getPreferredSize().addLocal(-250, -200, 0));
|
||||
|
@ -22,7 +22,7 @@ public class DeckHelper{
|
||||
cards.add(new Card("Du kommst aus dem Gulak frei!", "gulak-frei-2"));
|
||||
cards.add(new Card("Du hast den Dienstführerschein bestanden. Ziehe vor bis Teststrecke.", "dienstfuehrerschein"));
|
||||
cards.add(new Card("Malkmus läd zum Pubquiz ein. Rücke vor bis zum 20er.", "pubquiz"));
|
||||
cards.add(new Card("Deine IGF-Daten sind verschwunden, statte Padubrin einen Besuch ab und gib ihm einen Jägermeister aus.", "namensschild-truppenkueche"));
|
||||
cards.add(new Card("Deine IGF-Daten sind verschwunden, statte Padubrin einen Besuch ab und gib ihm einen Jägermeister aus.", "IGF-Padubrin"));
|
||||
cards.add(new Card("Du hast heute die Spendierhosen an und gibst eine Runde in der Unibar. Zahle jedem Spieler 400 EUR", "spendierhosen-unibar"));
|
||||
cards.add(new Card("Du warst in der Prüfungsphase krank. Gehe 3 Felder zurück.", "pruefungsphase-krank"));
|
||||
cards.add(new Card("Ziehe vor bis zum nächsten Monatsgehalt.", "naechstes-monatsgehalt"));
|
||||
@ -75,8 +75,8 @@ public class DeckHelper{
|
||||
pubquiz(player);
|
||||
break;
|
||||
|
||||
case "namensschild-truppenkueche":
|
||||
namensschildTruppenkueche(player);
|
||||
case "IGF-Padubrin":
|
||||
igfPadubrin(player);
|
||||
break;
|
||||
|
||||
case "spendierhosen-unibar":
|
||||
@ -204,7 +204,7 @@ public class DeckHelper{
|
||||
player.setPositionWithMoney(39);
|
||||
}
|
||||
|
||||
private void namensschildTruppenkueche(Player player) {
|
||||
private void igfPadubrin(Player player) {
|
||||
player.setPosition(24);
|
||||
player.pay(250);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user