private void AddBonusIfPlayerPassedGo(Int32 playerId, Int32 locationsToMove, Int32 currentLocation) { var timesAroundBoard = ((currentLocation + (Locations.Count() + locationsToMove)) / Locations.Count()) - 1; for (var i = 0; i < timesAroundBoard; i++) { banker.PayMoneyTo(playerId, passGoBonus); } }
public void PerformOn(Int32 playerId) { banker.PayMoneyTo(playerId, money); }