Esempio n. 1
0
        public static HouseData GetHouseData(House house)
        {
            var houseData = new HouseData();

            houseData.SetRentItems(house.SlumLord.GetRentItems());
            houseData.SetPaidItems(house.SlumLord);

            return(houseData);
        }
Esempio n. 2
0
        /// <summary>
        /// Returns the HouseData structure for a House (rent and paid items)
        /// </summary>
        private static HouseData GetHouseData(House house)
        {
            var houseData = new HouseData();

            houseData.SetRentItems(house.SlumLord.GetRentItems());
            houseData.SetPaidItems(house.SlumLord);

            if (house.HouseStatus == HouseStatus.InActive)
            {
                houseData.MaintenanceFree = true;
            }

            return(houseData);
        }