Merge remote-tracking branch 'origin/gui' into gui

This commit is contained in:
Yvonne Schmidt
2024-11-24 19:25:12 +01:00
7 changed files with 135 additions and 19 deletions

View File

@@ -168,6 +168,7 @@ public class Player implements FieldVisitor<Void>{
public void buyProperty(PropertyField property) {
if (property.getOwner() == null && accountBalance >= property.getPrice()) {
properties.add(property);
property.setOwner(this);
pay(property.getPrice());
}
}