Exemple #1
0
 public void PayBail(Trader theBanker)
 {
     if (getOutOfJailFreeCards > 0)
     {
         getOutOfJailFreeCards--;
         InJail = false;
     }
     else
     {
         this.TransferMoney(theBanker, 50);
     }
 }
Exemple #2
0
 public void TransferMoney(Trader destination, int amount)
 {
     if (Balance > amount)
     {
         Balance -= amount;
         destination.Balance += amount;
     }
     else
     {
         // Display some sort of error that they can't afford nothin'
     }
 }
Exemple #3
0
 public void TransferPropertySquare(Trader destination, PropertySquare property)
 {
     RemovePropertySquare(property);
     destination.AddPropertySquare(property);
 }
Exemple #4
0
 public void TransferPropertySquare(Trader destination, PropertySquare property)
 {
     RemovePropertySquare(property);
     destination.AddPropertySquare(property);
 }