small bug fixes

This commit is contained in:
Johannes Schmelz 2024-11-23 16:16:40 +01:00
parent 3369057afb
commit 10e24cf30e
3 changed files with 8 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public class BoardManager {
* Creates a Monopoly GameBoard * Creates a Monopoly GameBoard
* @return the List of Fields in correct Order * @return the List of Fields in correct Order
*/ */
private List<Field> createBoard() { public static List<Field> createBoard() {
ArrayList<Field> fields = new ArrayList<>(); ArrayList<Field> fields = new ArrayList<>();
fields.add(new GoField()); fields.add(new GoField());

View File

@ -15,4 +15,8 @@ public class GulagField extends Field{
player.visit(this); player.visit(this);
} }
public int getBailCost() {
return bailCost;
}
} }

View File

@ -19,6 +19,8 @@ public class TestStreckeField extends Field{
} }
public int collectMoney() { public int collectMoney() {
return money = 0; int tmp = money;
money = 0;
return tmp;
} }
} }