Beispiel #1
0
        protected void Mortgage(PropertySpace space)
        {
            if (!space.IsMortgaged)
            {
                //Set property to mortgage
                space.IsMortgaged = true;

                //Give player the money
                GetMoney(space.MortgageValue);
            }
        }
Beispiel #2
0
        protected void Unmortgage(PropertySpace space)
        {
            if (space.IsMortgaged)
            {
                //Set property to unmortgaged
                space.IsMortgaged = false;

                //Player pays back the money
                GiveMoney(space.UnmortgageCost, null);
                //This can trigger bankruptcy escape so be careful!
                //Maybe include a warning...
            }
        }