Skip to content

Commit

Permalink
#41 Add Field Descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
koflerm committed May 28, 2022
1 parent 3617acf commit e478a2c
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 70 deletions.
141 changes: 72 additions & 69 deletions core/src/boardLogic/BoardFields.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,75 +6,78 @@ public class BoardFields {

private static Field[] initFields(float boardX, float boardLength) {
return new Field[]{
new Field(0, boardX + (boardLength / 1.135f), boardLength / 15),
new Field(1, boardX + (boardLength / 14f), boardLength / 8.5f),
new Field(2, boardX + (boardLength / 8.5f), boardLength / 1.08f),
new Field(3, boardX + (boardLength / 1.08f), boardLength / 1.13f),
new Field(4, boardX + (boardLength / 1.22f), boardLength / 23),
new Field(5, boardX + (boardLength / 1.33f), boardLength / 19),
new Field(6, boardX + (boardLength / 1.45f), boardLength / 12),
new Field(7, boardX + (boardLength / 1.53f), boardLength / 7),
new Field(8, boardX + (boardLength / 1.545f), boardLength / 5),
new Field(9, boardX + (boardLength / 1.53f), boardLength / 3.9f),
new Field(10, boardX + (boardLength / 1.449f), boardLength / 3.2f),
new Field(11, boardX + (boardLength / 1.35f), boardLength / 2.9f),
new Field(12, boardX + (boardLength / 1.71f), boardLength / 5),
new Field(13, boardX + (boardLength / 2f), boardLength / 5),
new Field(14, boardX + (boardLength / 2.43f), boardLength / 5),
new Field(15, boardX + (boardLength / 2.83f), boardLength / 5),
new Field(16, boardX + (boardLength / 2.90f), boardLength / 7),
new Field(17, boardX + (boardLength / 3.25f), boardLength / 11.5f),
new Field(18, boardX + (boardLength / 4f), boardLength / 19),
new Field(19, boardX + (boardLength / 5.5f), boardLength / 23),
new Field(20, boardX + (boardLength / 9f), boardLength / 15),
new Field(21, boardX + (boardLength / 22f), boardLength / 5.5f),
new Field(22, boardX + (boardLength / 20f), boardLength / 4f),
new Field(23, boardX + (boardLength / 12f), boardLength / 3.3f),
new Field(24, boardX + (boardLength / 7f), boardLength / 2.9f),
new Field(25, boardX + (boardLength / 4.95f), boardLength / 2.85f),
new Field(26, boardX + (boardLength / 4.95f), boardLength / 2.4f),
new Field(27, boardX + (boardLength / 4.95f), boardLength / 2.14f),
new Field(28, boardX + (boardLength / 4.95f), boardLength / 1.89f),
new Field(29, boardX + (boardLength / 4.95f), boardLength / 1.7f),
new Field(30, boardX + (boardLength / 4.95f), boardLength / 1.55f),
new Field(31, boardX + (boardLength / 7f), boardLength / 1.53f),
new Field(32, boardX + (boardLength / 12f), boardLength / 1.45f),
new Field(33, boardX + (boardLength / 20f), boardLength / 1.33f),
new Field(34, boardX + (boardLength / 22f), boardLength / 1.22f),
new Field(35, boardX + (boardLength / 14f), boardLength / 1.13f),
new Field(36, boardX + (boardLength / 5.5f), boardLength / 1.05f),
new Field(37, boardX + (boardLength / 4f), boardLength / 1.06f),
new Field(38, boardX + (boardLength / 3.33f), boardLength / 1.105f),
new Field(39, boardX + (boardLength / 2.90f), boardLength / 1.17f),
new Field(40, boardX + (boardLength / 2.83f), boardLength / 1.26f),
new Field(41, boardX + (boardLength / 2.90f), boardLength / 1.36f),
new Field(42, boardX + (boardLength / 3.25f), boardLength / 1.455f),
new Field(43, boardX + (boardLength / 3.9f), boardLength / 1.52f),
new Field(44, boardX + (boardLength / 2.43f), boardLength / 1.26f),
new Field(45, boardX + (boardLength / 2.13f), boardLength / 1.26f),
new Field(46, boardX + (boardLength / 1.9f), boardLength / 1.26f),
new Field(47, boardX + (boardLength / 1.71f), boardLength / 1.26f),
new Field(48, boardX + (boardLength / 1.545f), boardLength / 1.26f),
new Field(49, boardX + (boardLength / 1.53f), boardLength / 1.17f),
new Field(50, boardX + (boardLength / 1.45f), boardLength / 1.105f),
new Field(51, boardX + (boardLength / 1.33f), boardLength / 1.06f),
new Field(52, boardX + (boardLength / 1.22f), boardLength / 1.05f),
new Field(53, boardX + (boardLength / 1.14f), boardLength / 1.08f),
new Field(54, boardX + (boardLength / 1.055f), boardLength / 1.22f),
new Field(55, boardX + (boardLength / 1.06f), boardLength / 1.33f),
new Field(56, boardX + (boardLength / 1.1f), boardLength / 1.44f),
new Field(57, boardX + (boardLength / 1.17f), boardLength / 1.52f),
new Field(58, boardX + (boardLength / 1.255f), boardLength / 1.56f),
new Field(59, boardX + (boardLength / 1.255f), boardLength / 1.71f),
new Field(60, boardX + (boardLength / 1.255f), boardLength / 1.9f),
new Field(61, boardX + (boardLength / 1.255f), boardLength / 2.13f),
new Field(62, boardX + (boardLength / 1.255f), boardLength / 2.43f),
new Field(63, boardX + (boardLength / 1.255f), boardLength / 2.85f),
new Field(64, boardX + (boardLength / 1.17f), boardLength / 2.9f),
new Field(65, boardX + (boardLength / 1.1f), boardLength / 3.3f),
new Field(66, boardX + (boardLength / 1.06f), boardLength / 4f),
new Field(67, boardX + (boardLength / 1.055f), boardLength / 5.5f),
new Field(68, boardX + (boardLength / 1.08f), boardLength / 9f)
new Field(0, "Dein Buch \"Geld verjubeln leicht gemacht\" ist ein Bestseller! Kassiere 5000 Euro",boardX + (boardLength / 1.135f), boardLength / 15),
new Field(1, "Verwöhne dich bei Juwelier \"Bling Bling & Bling\". Zahle 170.000 Euro.",boardX + (boardLength / 14f), boardLength / 8.5f),
new Field(2, "Gönne dir eine goldene Handyhülle. Zahle 50.000 Euro.",boardX + (boardLength / 8.5f), boardLength / 1.08f),
new Field(3, "Deine Brieftasche ist zu schwer! Zahle 100.000",boardX + (boardLength / 1.08f), boardLength / 1.13f),
new Field(4, "Deine Brieftasche ist zu schwer! Zahle 50.000",boardX + (boardLength / 1.22f), boardLength / 23),
new Field(5, "Du bist der ein millionste Kunden bei \"Edel und Teuer\". Du gewinnst 10000 Euro.",boardX + (boardLength / 1.33f), boardLength / 19),
new Field(6, "Du kaufst nutzlose Aktien. Zahle 100.000 Euro.",boardX + (boardLength / 1.45f), boardLength / 12),
new Field(7, "Du kaufst Lotterielose ohne Gewinn. Zahle 50.000 Euro",boardX + (boardLength / 1.53f), boardLength / 7),
new Field(8, "Gehe zur Rennstrecke.",boardX + (boardLength / 1.545f), boardLength / 5),
new Field(9, "Mit deinem Bild \"Malen nach Zahlen\" gewinnst du den Turner Prize. Kassiere 10.000 Euro",boardX + (boardLength / 1.53f), boardLength / 3.9f),
new Field(10, "Du klaust den Hut eines Bettlers. Du erhälst 50 Euro.",boardX + (boardLength / 1.449f), boardLength / 3.2f),
new Field(11, "Alles Gute zum Geburtstag! Du erhälst 5.000 Euro",boardX + (boardLength / 1.35f), boardLength / 2.9f),
new Field(12, "Du kaufst nutzlose Aktien. Zahle 100.000 Euro.",boardX + (boardLength / 1.71f), boardLength / 5),
new Field(13, "Du kaufst Lotterielose ohne Gewinn. Zahle 50.000 Euro",boardX + (boardLength / 2f), boardLength / 5),
new Field(14, "Du kaufst nutzlose Aktien. Zahle 50.000 Euro.",boardX + (boardLength / 2.43f), boardLength / 5),
new Field(15, "Dein Personal Trainer nimmt dich zu hart ran. Gehe zur Osteopathen. Zahle 50.000 Euro.",boardX + (boardLength / 2.83f), boardLength / 5),
new Field(16, "Du klaust den Hut eines Bettlers. Du erhälst 50 Euro.",boardX + (boardLength / 2.90f), boardLength / 7),
new Field(17, "Deine Eltern haben Hochzeitstag! Überrasche Sie mit einer VIP-Weltreise. Zahle 100.000 Euro",boardX + (boardLength / 3.25f), boardLength / 11.5f),
new Field(18, "Du kaufst Lotterielose ohne Gewinn. Zahle 50.000 Euro",boardX + (boardLength / 4f), boardLength / 19),
new Field(19, "Exklusive Fotoshooting für ein Hochzeitsmagazin Kassiere 50.000 Euro.",boardX + (boardLength / 5.5f), boardLength / 23),
new Field(20, "Du klaust den Hut eines Bettlers. Du erhälst 50 Euro.",boardX + (boardLength / 9f), boardLength / 15),
new Field(21, "Du kaufst nutzlose Aktien. Zahle 50.000 Euro.",boardX + (boardLength / 22f), boardLength / 5.5f),
new Field(22, "Titel gewonnen! \"Begossenster Pudel des Jahres\" bei der World Dog Show. Kassiere 10.000 Euro",boardX + (boardLength / 20f), boardLength / 4f),
// MINIGAME BÖRSE
new Field(23, "Börse",boardX + (boardLength / 12f), boardLength / 3.3f),
new Field(24, "Deine Eltern haben Hochzeitstag! Überrasche Sie mit einer VIP-Weltreise. Zahle 100.000 Euro",boardX + (boardLength / 7f), boardLength / 2.9f),
new Field(25, "Dein Personal Trainer nimmt dich zu hart ran. Gehe zur Osteopathen. Zahle 50.000 Euro.",boardX + (boardLength / 4.95f), boardLength / 2.85f),
new Field(26, "Hamsterkauf! Besorge einen Jahresvorrat Klopapier aus 4.lagiger Seide. Zahle 40.000 Euro.",boardX + (boardLength / 4.95f), boardLength / 2.4f),
new Field(27, "Dein Personal Trainer nimmt dich zu hart ran. Gehe zur Osteopathen. Zahle 50.000 Euro.",boardX + (boardLength / 4.95f), boardLength / 2.14f),
new Field(28, "Beauftragte Saylor Twift damit, dir einen Klingelton zu komponieren. Zahle 70.000 Euro",boardX + (boardLength / 4.95f), boardLength / 1.89f),
new Field(29, "Dein Personal Trainer nimmt dich zu hart ran. Gehe zur Osteopathen. Zahle 50.000 Euro.",boardX + (boardLength / 4.95f), boardLength / 1.7f),
new Field(30, "Du bekommst einen heißen Tipp! Gehe zur Rennstrecke",boardX + (boardLength / 4.95f), boardLength / 1.55f),
new Field(31, "Kaufe eine Discokugel aus Diamanten. Zahle 150.000 Euro",boardX + (boardLength / 7f), boardLength / 1.53f),
new Field(32, "Du klaust den Hut eines Bettlers. Du erhälst 50 Euro.",boardX + (boardLength / 12f), boardLength / 1.45f),
new Field(33, "Verwöhne deinen Hund mit einem Halsband aus Rubinen. Zahle 30.000 Euro",boardX + (boardLength / 20f), boardLength / 1.33f),
new Field(34, "Gehe zur Rennstrecke",boardX + (boardLength / 22f), boardLength / 1.22f),
new Field(35, "Verwöhne deinen Hund mit einem Halsband aus Rubinen. Zahle 30.000 Euro",boardX + (boardLength / 14f), boardLength / 1.13f),
new Field(36, "Du bist auf einem Kaviarschnittchen ausgerutscht. Kassiere 10.000 Euro",boardX + (boardLength / 5.5f), boardLength / 1.05f),
new Field(37, "Du klaust den Hut eines Bettlers. Du erhälst 50 Euro.",boardX + (boardLength / 4f), boardLength / 1.06f),
new Field(38, "Spendierhosen in der Bar! Zahle 5.000 Euro",boardX + (boardLength / 3.33f), boardLength / 1.105f),
new Field(39, "Kaufe Anteile an einem Rennpferd! Zahle 50.000 Euro.",boardX + (boardLength / 2.90f), boardLength / 1.17f),
new Field(40, "Kaufe Anteile an nachhaltigen Kohlebergwerken! Zahle 50.000 Euro.",boardX + (boardLength / 2.83f), boardLength / 1.26f),
new Field(41, "Du verletzt dich bei einem Wrestlingmatch! Du erhälst 20.000 Euro.",boardX + (boardLength / 2.90f), boardLength / 1.36f),
// MINIGAME AUKTIONSHAUS
new Field(42, "Aktionshaus",boardX + (boardLength / 3.25f), boardLength / 1.455f),
new Field(43, "Deine Oma benötigt ein neues Facelifting. Zahle 80.000 Euro",boardX + (boardLength / 3.9f), boardLength / 1.52f),
new Field(44, "Du klaust den Hut eines Bettlers. Du erhälst 50 Euro.",boardX + (boardLength / 2.43f), boardLength / 1.26f),
new Field(45, "Du klaust den Hut eines Bettlers. Du erhälst 50 Euro.",boardX + (boardLength / 2.13f), boardLength / 1.26f),
new Field(46, "Du steckst deine Ersparnisse in Bitcoin. Zahle 100.000 Euro.",boardX + (boardLength / 1.9f), boardLength / 1.26f),
new Field(47, "Heute ist nicht dein Tag! Zahle 100.000 Euro.",boardX + (boardLength / 1.71f), boardLength / 1.26f),
new Field(48, "Du steckst deine Ersparnisse in Bitcoin. Zahle 100.000 Euro.",boardX + (boardLength / 1.545f), boardLength / 1.26f),
new Field(49, "Du steckst deine Ersparnisse in Etherium. Zahle 100.000 Euro.",boardX + (boardLength / 1.53f), boardLength / 1.17f),
new Field(50, "Du steckst deine Ersparnisse in DogeCoin. Zahle 100.000 Euro.",boardX + (boardLength / 1.45f), boardLength / 1.105f),
new Field(51, "Du steckst deine Ersparnisse in NFTs. Zahle 100.000 Euro.",boardX + (boardLength / 1.33f), boardLength / 1.06f),
new Field(52, "Du steckst deine Ersparnisse in ein Schneeballsystem. Zahle 100.000 Euro.",boardX + (boardLength / 1.22f), boardLength / 1.05f),
new Field(53, "Deine Mutter klaut dein Geld für eine neue Handtasche. Zahle 20.000 Euro.",boardX + (boardLength / 1.14f), boardLength / 1.08f),
new Field(54, "Verwöhne dein Pony mit Beinwärmern aus Kaschmir! Zahle 50.000 Euro.",boardX + (boardLength / 1.055f), boardLength / 1.22f),
new Field(55, "",boardX + (boardLength / 1.06f), boardLength / 1.33f),
// MINIGAME RENNSTRECKE
new Field(56, "Rennstrecke",boardX + (boardLength / 1.1f), boardLength / 1.44f),
new Field(57, "Du bist auf einem Kaviarschnittchen ausgerutscht. Kassiere 10.000 Euro",boardX + (boardLength / 1.17f), boardLength / 1.52f),
new Field(58, "Gönn dir einen mit Champagner gefüllten Jacuzzi. Zahle 60.000 Euro.",boardX + (boardLength / 1.255f), boardLength / 1.56f),
new Field(59, "Lege mit deiner Yacht im Hafen von Monaco an. Zahle 50.000 Euro.",boardX + (boardLength / 1.255f), boardLength / 1.71f),
new Field(60, "Du klaust den Hut eines Bettlers. Du erhälst 50 Euro.",boardX + (boardLength / 1.255f), boardLength / 1.9f),
new Field(61, "Du kaufst nutzlose Aktien. Zahle 100.000 Euro.",boardX + (boardLength / 1.255f), boardLength / 2.13f),
new Field(62, "Spendiere einem Spieler deiner Wahl eine Verjüngerungskur Zahle 100.000 Euro.",boardX + (boardLength / 1.255f), boardLength / 2.43f),
new Field(63, "Du versenkst deine Yacht in Lignano. Zahle 200.000 Euro.",boardX + (boardLength / 1.255f), boardLength / 2.85f),
new Field(64, "Verwöhne dein Pony mit Beinwärmern aus Kaschmir! Zahle 50.000 Euro.",boardX + (boardLength / 1.17f), boardLength / 2.9f),
new Field(65, "Gönne dir eine goldene Handyhülle. Zahle 50.000 Euro.",boardX + (boardLength / 1.1f), boardLength / 3.3f),
new Field(66, "Heute ist nicht dein Tag! Zahle 10.000 Euro.",boardX + (boardLength / 1.06f), boardLength / 4f),
new Field(67, "Dein Hamster stirbt und die Nagetierversicherung zahlt. Kassiere 10.000 Euro",boardX + (boardLength / 1.055f), boardLength / 5.5f),
new Field(68, "Du kaufst nutzlose Aktien. Zahle 100.000 Euro.",boardX + (boardLength / 1.08f), boardLength / 9f)
};
}
public static Field[] getFields(float boardX, float boardLength) {
Expand Down
5 changes: 4 additions & 1 deletion core/src/fieldLogic/Field.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ public class Field {
private Field optionalNextField;
private Field previousField;
private final int fieldIndex;
private final String fieldDescription;
private final float x;
private final float y;

public Field(int fieldIndex, float x, float y){
public Field(int fieldIndex, String fieldDescription, float x, float y){
this.fieldIndex = fieldIndex;
this.fieldDescription = fieldDescription;
this.x = x;
this.y = y;
}
Expand All @@ -31,6 +33,7 @@ public boolean hasPlayer(ArrayList<Player> players) {

//-------GETTERS---------
public int getFieldIndex(){return fieldIndex;}
public String getFieldDescription(){return fieldDescription;}
public Field getNextField(){return nextField;}
public Field getOptionalNextField(){return optionalNextField;}
public Field getPreviousField(){return previousField;}
Expand Down

0 comments on commit e478a2c

Please sign in to comment.