mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-11-24 23:59:44 +01:00
small bug fixes
This commit is contained in:
parent
3369057afb
commit
10e24cf30e
@ -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());
|
||||||
|
@ -15,4 +15,8 @@ public class GulagField extends Field{
|
|||||||
player.visit(this);
|
player.visit(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getBailCost() {
|
||||||
|
return bailCost;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user