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