/** * Performs all te steps that are needed when taking a mortgage: * - mark property as mortgaged * - add the money to player */ private void TakeMortgage() { if (window.GetSelectedItem() != null) { GameState = GameStage.NO_ACTION; foreach (ListViewItem lvi in window.GetSelectedItems()) { Card mortgagedCard = (Card)lvi.Tag; currentPlayer.Money += mortgagedCard.MortgageValue; mortgagedCard.Mortgaged = true; } } }