/** * Creates a MZDungeonGenerator with a given random seed and places * specific constraints on {@link IMZDungeon}s it Generates. * * @param seed the random seed to use * @param constraints the constraints to place on generation * @see constraints.IMZDungeonConstraints */ public MZDungeonGenerator(int seed, IMZDungeonConstraints constraints) { this.seed = seed; UnityEngine.Random.InitState(seed); this.constraints = constraints; bossRoomLocked = GenerateGoal = true; }
public LinearDungeonGenerator(int seed, IMZDungeonConstraints constraints, int nOfRooms, int maxGenerations) : base(seed, constraints, nOfRooms) { this.maxGenerations = maxGenerations; }