public Boolean ShouldPayOffMortgage(Int32 moneyOnHand, OwnableSpace property)
 {
     return GetRandomBooleanValue();
 }
 public Boolean ShouldPayOffMortgage(Int32 moneyOnHand, OwnableSpace property)
 {
     return false;
 }
 private void PayOffMortgage(OwnableSpace ownableSpace)
 {
     banker.Pay(ownedSpaces[ownableSpace], ownableSpace.Price);
     ownableSpace.Mortgaged = false;
 }
        private void PayRent(IPlayer player, OwnableSpace ownableSpace)
        {
            var rent = ownableSpace.GetRent();

            banker.Transact(player, ownedSpaces[ownableSpace], rent);
            CheckForBankrupcies();
        }
 private Boolean Owned(OwnableSpace ownableSpace)
 {
     return ownedSpaces[ownableSpace] != NO_OWNER;
 }
 private void Mortgage(OwnableSpace ownableSpace)
 {
     ownableSpace.Mortgaged = true;
     banker.Collect(ownedSpaces[ownableSpace], ownableSpace.Price / 10 * 9);
 }
        private void CheckMortgage(OwnableSpace ownableSpace)
        {
            if (ownableSpace is Property)
            {
                var property = ownableSpace as Property;

                if (property.Houses > 0 && EvenBuildAllowsSellingOfHouse(property))
                    SellHouseOrHotel(property);
                else if (property.Houses == 0 && NoPropertiesInGroupHaveHouses(property.Grouping))
                    Mortgage(property);
            }
            else
            {
                Mortgage(ownableSpace);
            }
        }
        private void Buy(IPlayer player, OwnableSpace ownableSpace)
        {
            banker.Pay(player, ownableSpace.Price);
            ownedSpaces[ownableSpace] = player;

            if (ownableSpace is Property)
                SetMonopolyFlags(player, ownableSpace as Property);
            else if (ownableSpace is Railroad)
                SetRailroadCount(player);
            else
                SetBothUtilitiesOwnedFlag();
        }
 public Boolean ShouldPayOffMortgage(Int32 moneyOnHand, OwnableSpace property)
 {
     return moneyOnHand - property.Price >= 500;
 }