private void _mazeToolbox_CreateCalled(int width, int height, int run, int seed, DefaultCreator.Directions start, DefaultCreator.Directions end, DefaultCreator.MazeTypes type, int roomDensity, int roomDistance, int roomMinSize, int roomMaxSize) { Create(width, height, run, seed, start, end, type, roomDensity, roomDistance, roomMinSize, roomMaxSize); }
private void Create(int width, int height, int corridorBias, int seed, DefaultCreator.Directions start, DefaultCreator.Directions end, DefaultCreator.MazeTypes mazeType, int roomDensity, int roomDistance, int roomMinSize, int roomMaxSize) { _maze = new Maze(width, height); _maze.Create(new DefaultCreator(corridorBias, seed, start, end, mazeType, roomDensity, roomDistance, roomMinSize, roomMaxSize)); _maze.Solve(new DefaultSolver()); Refresh(); }
private void OnCreateCalled() { if (CreateCalled == null) { return; } DefaultCreator.Directions startDirection = (DefaultCreator.Directions)cbxStartSide.SelectedIndex; DefaultCreator.Directions endDirection = (DefaultCreator.Directions)cbxExitSide.SelectedIndex; DefaultCreator.MazeTypes type = (DefaultCreator.MazeTypes)cbxMazeType.SelectedIndex; CreateCalled((int)nudWidth.Value, (int)nudHeight.Value, tkbRun.Value, (int)nudSeed.Value, startDirection, endDirection, type, (int)nudRoomDensity.Value, (int)nudRoomDistance.Value, (int)nudRoomMinSize.Value, (int)nudRoomMaxSize.Value); }