Example #1
0
 public void PayBail(Trader theBanker)
 {
     if (getOutOfJailFreeCards > 0)
     {
         getOutOfJailFreeCards--;
         InJail = false;
     }
     else
     {
         this.TransferMoney(theBanker, 50);
     }
 }
Example #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'
     }
 }
Example #3
0
 public void TransferPropertySquare(Trader destination, PropertySquare property)
 {
     RemovePropertySquare(property);
     destination.AddPropertySquare(property);
 }
Example #4
0
 public void TransferPropertySquare(Trader destination, PropertySquare property)
 {
     RemovePropertySquare(property);
     destination.AddPropertySquare(property);
 }