Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public void PerformOn(Int32 playerId)
 {
     banker.PayMoneyTo(playerId, money);
 }