public void CaveTest()
        {
            var strat = new CaveMapCreationStrategy <RogueSharp.Map>(100, 120, 0.65);
            var map   = strat.CreateMap();

            Debug.WriteLine(map.ToString());
        }
Пример #2
0
        public DungeonMap CreateCave(bool explored)
        {
            map.Initialize(width, heigth);

            IMapCreationStrategy <Map> strategy = new CaveMapCreationStrategy <Map>(width, heigth, 48, 3, 1);

            map.Copy(strategy.CreateMap());

            foreach (Cell cell in map.GetAllCells())
            {
                map.SetCellProperties(cell.X, cell.Y, cell.IsTransparent, cell.IsWalkable, explored);
            }

            return(map);
        }