private List <INode> GenerateNewMaze(MazeTypes mazeType, int mazeDimensions)
        {
            List <INode> newMaze;

            newMaze = MazeGridFactory.GenerateMaze(mazeType, mazeDimensions);
            return(newMaze);
        }
Example #2
0
        public void Write(Stream stream, MazeGridSettings mazeSettings)
        {
            RenderGrid renderGrid = new MazeGridFactory(mazeSettings).CreateRenderGrid();
            var        factory    = new TreeComponentFactory();
            var        renderer   = new NormalGameLevelRenderer(
                factory.CreateBackgroundRenderers(),
                factory.CreateGroundRenderers(),
                factory.CreateWallRenderers(),
                factory.CreateSettings());

            using (renderer)
            {
                renderer.Render(renderGrid, stream);
            }
        }