Beispiel #1
0
        public static HouseInfo GetHouseCard(int deck)
        {
            var thisCard = new HouseInfo()
            {
                Deck = deck
            };

            switch (deck)
            {
            case 10:
            {
                thisCard.HouseCategory = EnumHouseType.BeachHouse;
                thisCard.HousePrice    = 140000;
                thisCard.InsuranceCost = 35000;
                var tempList = new CustomBasicList <decimal>()
                {
                    100000, 100000, 130000, 130000, 130000, 130000, 130000, 130000, 150000, 150000
                };
                thisCard.SellingPrices = tempList.GetSellingPrices();
                thisCard.Title         = "High Winds Realty";
                thisCard.Description   = "Only 50 yeards from Monsoon Beach.  Sun deck, boat deck, hurricane wall.  Hurry while it lasts!";
                break;
            }

            case 11:
            {
                thisCard.HouseCategory = EnumHouseType.CozyCondo;
                thisCard.Title         = "Sandwich Inn Realty";
                thisCard.Description   = "This beautiful 2-level condominium comes complete with gourmet kitchen and rooftop garden.";
                thisCard.HousePrice    = 100000;
                thisCard.InsuranceCost = 25000;
                var tempList = new CustomBasicList <decimal>()
                {
                    90000, 90000, 90000, 90000, 110000, 110000, 110000, 110000, 125000, 125000
                };
                thisCard.SellingPrices = tempList.GetSellingPrices();
                break;
            }

            case 12:
            {
                thisCard.HouseCategory = EnumHouseType.DutchColonial;
                thisCard.Title         = "Wooden Shoe Realty";
                thisCard.Description   = "8 spacious rooms w/study, den.  Solar-heated, wood-burning stoves, solid oak floors.";
                thisCard.HousePrice    = 120000;
                thisCard.InsuranceCost = 30000;
                var TempList = new CustomBasicList <decimal>()
                {
                    100000, 100000, 130000, 130000, 130000, 130000, 130000, 130000, 150000, 150000
                };
                thisCard.SellingPrices = TempList.GetSellingPrices();
                break;
            }

            case 13:
            {
                thisCard.HouseCategory = EnumHouseType.FarmHouse;
                thisCard.Title         = "Eurell B. Milken Realty";
                thisCard.Description   = "Located on 50 rolling acres!  Garbanzo bean crops, prizewinning pigs & daily cows.  Spacious barn w/silo.";
                thisCard.HousePrice    = 160000;
                thisCard.InsuranceCost = 40000;
                var tempList = new CustomBasicList <decimal>()
                {
                    140000, 140000, 180000, 180000, 180000, 180000, 180000, 200000, 200000, 200000
                };
                thisCard.SellingPrices = tempList.GetSellingPrices();
                break;
            }

            case 14:
            {
                thisCard.HouseCategory = EnumHouseType.LogCabin;
                thisCard.Title         = "Rod N. Realty";
                thisCard.Description   = "Rustic charm in a woodland setting.  Loft w/skylight, stone fireplace.  Near Lake Ketcheefishee.";
                thisCard.HousePrice    = 80000;
                thisCard.InsuranceCost = 20000;
                var templist = new CustomBasicList <decimal>()
                {
                    70000, 70000, 70000, 80000, 80000, 80000, 80000, 80000, 100000, 100000
                };
                thisCard.SellingPrices = templist.GetSellingPrices();
                break;
            }

            case 15:
            {
                thisCard.HouseCategory = EnumHouseType.MobileHome;
                thisCard.Title         = "Deals On Wheels Realty";
                thisCard.Description   = "Aluminum-sided little beauty!  Great location, lovely view.  Trailer hitch included.";
                thisCard.HousePrice    = 60000;
                thisCard.InsuranceCost = 15000;
                var tempList = new CustomBasicList <decimal>()
                {
                    30000, 30000, 30000, 60000, 60000, 60000, 60000, 80000, 80000, 80000
                };
                thisCard.SellingPrices = tempList.GetSellingPrices();
                break;
            }

            case 16:
            {
                thisCard.HouseCategory = EnumHouseType.SplitLevel;
                thisCard.Title         = "Faultline Realty";
                thisCard.Description   = "Was one level before the 'quake.  Now a real fixer-upper for adventurous folks!";
                thisCard.HousePrice    = 40000;
                thisCard.InsuranceCost = 10000;
                var tempList = new CustomBasicList <decimal>()
                {
                    20000, 20000, 20000, 20000, 40000, 40000, 40000, 40000, 60000, 60000
                };
                thisCard.SellingPrices = tempList.GetSellingPrices();
                break;
            }

            case 17:
            {
                thisCard.HouseCategory = EnumHouseType.Tudor;
                thisCard.Title         = "Tutime Realty";
                thisCard.Description   = "Tufloors, tubaths, tucar garage.  Perfect for tupeople with tukids or more!";
                thisCard.HousePrice    = 180000;
                thisCard.InsuranceCost = 45000;
                var tempList = new CustomBasicList <decimal>()
                {
                    170000, 170000, 215000, 215000, 215000, 215000, 215000, 215000, 215000, 250000
                };
                thisCard.SellingPrices = tempList.GetSellingPrices();
                break;
            }

            case 18:
            {
                thisCard.HouseCategory = EnumHouseType.Victorian;
                thisCard.Title         = "Blithering Heights Realty";
                thisCard.Description   = "Library, parlor, servants' quarters, marble fireplaces, wraparound porch.";
                thisCard.HousePrice    = 200000;
                thisCard.InsuranceCost = 50000;
                var tempList = new CustomBasicList <decimal>()
                {
                    180000, 180000, 225000, 225000, 225000, 225000, 225000, 225000, 300000, 300000
                };
                thisCard.SellingPrices = tempList.GetSellingPrices();
                break;
            }

            default:
            {
                throw new BasicBlankException("Must be between 10 and 18; not " + deck);
            }
            }
            return(thisCard);
        }