Monopoly/src/main/java/de/joethei/monopoly/fields/OwnableField.java

28 lines
470 B
Java

package de.joethei.monopoly.fields;
import de.joethei.monopoly.Player;
public class OwnableField extends Field {
private Player owner;
private int price;
OwnableField(String name, int price) {
super(name);
this.price = price;
}
public Player getOwner() {
return this.owner;
}
public int getPrice() {
return this.price;
}
public void setOwner(Player owner) {
this.owner = owner;
}
}