public string PropertyCanBeAssignedANameFromTheConstructor(string name)
 {
     Property boardPiece = new Property(name);
     return boardPiece.Name;
 }
Beispiel #2
0
 public void addProperty(Property property)
 {
     this.properties.Add(property);
 }
Beispiel #3
0
 /// <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);
 }
Beispiel #4
0
 public override bool WouldLikeToBuy(Property property)
 {
     return(false);
 }
Beispiel #5
0
 /// <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);
 }