public void UIPayPlayer(Tiles.Property prop) { if (HasRef) { int rent = prop.CurrentRent(); String message = String.Format("You pay player {0} ${1} for landing on {2}.", prop.OwnerID + 1, rent, prop.Name); DisplayPopup(message, "Pay Opponent"); }//if else { UIRefError("UIPayPlayer()"); }//else }
private void OweRent(Tiles.Property prop) { int rent = prop.CurrentRent(); UI.UIPayPlayer(prop); MoneyLogic.PayPlayer(Game.ActivePlayerID, prop.OwnerID, rent); }