예제 #1
0
 private void OweBill(Tiles.Utility thisUtil, bool fromCard)
 {
     Player owner = Game.Players[thisUtil.OwnerID];
     int utilsOwned = Game.Players[thisUtil.OwnerID].Utilities;
     int roll = Game.LastRoll;
     if (fromCard)
     {
         utilsOwned = 2;
         Random rand = new Random();
         int roll1, roll2;
         roll1 = rand.Next(1, 7);
         roll2 = rand.Next(1, 7);
         roll = roll1 + roll2;
     }//if
     int bill = thisUtil.GetBill(roll, utilsOwned);
     UI.UIPayPlayer(thisUtil, bill, fromCard);
     MoneyLogic.PayPlayer(Game.ActivePlayerID, thisUtil.OwnerID, bill);
 }