public string PropertyCanBeAssignedANameFromTheConstructor(string name) { Property boardPiece = new Property(name); return boardPiece.Name; }
public void addProperty(Property property) { this.properties.Add(property); }
/// <summary> /// Add property to list of owned properties /// </summary> /// <param name="prop"> The property to add to the players owned properties </param> /// <param name="owner"> The player that is the new owner of the property</param> /// <param name="bidAmount"> The amount the property was bid at for</param> public void BuyProperty(Property prop, Player owner, int bidAmount) { this.money = this.money - bidAmount; prop.Owner = owner; owner.properties.Add(prop); }
public override bool WouldLikeToBuy(Property property) { return(false); }
/// <summary> /// Add property to list of owned properties /// </summary> /// <param name="prop"> The property to add to the players owned properties </param> /// <param name="owner"> The player that is the new owner of the property</param> public void BuyProperty(Property prop, Player owner) { this.money = this.money - prop.Price; prop.Owner = owner; this.properties.Add(prop); }