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