public void buy(Property property) { property.buy(this); //call buy method of property to set owner money -= property.get_price(); properties_owned.Add(property); Console.WriteLine("Congratulations! You now own {0}. Your new bank balance is ${1}. " + "Below is more information about your purchase:\n\n{2}", property.get_name(), money, property); refresh_properties(); }
public void send_property(Player other, Property property) { properties_owned.Remove(property); //put property in other's posession other.receive_property(property); property.buy(other); refresh_properties(); }