示例#1
0
 private void SellPropertyToPlayerIfAffordable(Int32 playerId)
 {
     if (cost < banker.GetBalanceFor(playerId))
     {
         banker.CollectMoneyFrom(playerId, cost);
         OwnerId = playerId;
         IsOwned = true;
     }
 }
示例#2
0
 public void PerformOn(Int32 playerId)
 {
     banker.CollectMoneyFrom(playerId, money);
 }
示例#3
0
 public void RemoveWithFine(Int32 playerId)
 {
     banker.CollectMoneyFrom(playerId, jailFine);
     Remove(playerId);
 }