Exemple #1
0
        /// <summary>
        /// Sets up the Region maps and groupings for the PickNextArea tests
        /// </summary>
        /// <param name="firstGrouping"></param>
        /// <param name="secondGrouping"></param>
        /// <param name="desertRegion"></param>
        private void PickNextArea_GroupingSetup_DesertGroupings(out MapGrouping <SubRegion, WorldSubRegion> firstGrouping,
                                                                out MapGrouping <SubRegion, WorldSubRegion> secondGrouping, out Region desertRegion)
        {
            IRegionFactory regionFactory = new RegionFactory(_decisionManager);

            desertRegion = regionFactory.GetRegion(WorldRegion.Desert);
            MapManager mapManager = new MapManager(Globals.GroupingKeys);
            AreaMap <SubRegion, WorldSubRegion> desertMap = mapManager.GetSubRegionalMap(WorldRegion.Desert, desertRegion.SubRegions);

            firstGrouping  = desertMap.MapPaths.First(p => p.From.AreaId == WorldSubRegion.DesertIntro).To;
            secondGrouping = desertMap.MapPaths.First(p => p.From.AreaId == WorldSubRegion.DesertCrypt).To;
        }