Example #1
0
 protected FloorPathStartStepGeneric(IRandPicker <RoomGen <T> > genericRooms, IRandPicker <PermissiveRoomGen <T> > genericHalls)
 {
     this.GenericRooms   = genericRooms;
     this.GenericHalls   = genericHalls;
     this.RoomComponents = new ComponentCollection();
     this.HallComponents = new ComponentCollection();
 }
Example #2
0
 public SetSpecialRoomStep(IRandPicker <RoomGen <T> > rooms, IRandPicker <PermissiveRoomGen <T> > halls)
 {
     this.Rooms          = rooms;
     this.Halls          = halls;
     this.RoomComponents = new ComponentCollection();
     this.HallComponents = new ComponentCollection();
     this.Filters        = new List <BaseRoomFilter>();
 }
Example #3
0
 public AddConnectedRoomsStep(IRandPicker <RoomGen <T> > genericRooms, IRandPicker <PermissiveRoomGen <T> > genericHalls)
     : base()
 {
     this.GenericRooms   = genericRooms;
     this.GenericHalls   = genericHalls;
     this.RoomComponents = new ComponentCollection();
     this.HallComponents = new ComponentCollection();
     this.Filters        = new List <BaseRoomFilter>();
 }
Example #4
0
 public AddBossRoomStep(IRandPicker <RoomGen <T> > bossRooms, IRandPicker <RoomGen <T> > vaultRooms, IRandPicker <PermissiveRoomGen <T> > genericHalls)
     : base()
 {
     this.BossRooms           = bossRooms;
     this.TreasureRooms       = vaultRooms;
     this.GenericHalls        = genericHalls;
     this.BossComponents      = new ComponentCollection();
     this.VaultComponents     = new ComponentCollection();
     this.BossHallComponents  = new ComponentCollection();
     this.VaultHallComponents = new ComponentCollection();
     this.Filters             = new List <BaseRoomFilter>();
 }
Example #5
0
        protected SpreadPlanQuota(SpreadPlanQuota other, ulong seed) : base(other, seed)
        {
            Quota = other.Quota;

            ReRandom rand         = new ReRandom(seed);
            int      chosenAmount = Quota.Pick(rand);

            dropPoints = new HashSet <int>();

            List <int> availableFloors = new List <int>();

            for (int ii = FloorRange.Min; ii < FloorRange.Max; ii++)
            {
                availableFloors.Add(ii);
            }

            while (availableFloors.Count > 0 && dropPoints.Count < chosenAmount)
            {
                int chosenIndex = rand.Next(availableFloors.Count);
                dropPoints.Add(availableFloors[chosenIndex]);
                availableFloors.RemoveAt(chosenIndex);
            }
        }
Example #6
0
 public LoopedRand(IRandPicker <T> spawner, IRandPicker <int> amountSpawner)
 {
     this.spawner       = spawner;
     this.amountSpawner = amountSpawner;
 }
Example #7
0
 public FloorPathBranch(IRandPicker <RoomGen <T> > genericRooms, IRandPicker <PermissiveRoomGen <T> > genericHalls)
     : base(genericRooms, genericHalls)
 {
 }
Example #8
0
 public ConnectTestStep(IRandPicker <PermissiveRoomGen <IFloorPlanTestContext> > genericHalls)
     : base(genericHalls)
 {
 }
 protected FloorPathStartStepGeneric(IRandPicker <RoomGen <T> > genericRooms, IRandPicker <PermissiveRoomGen <T> > genericHalls)
 {
     this.GenericRooms = genericRooms;
     this.GenericHalls = genericHalls;
 }
Example #10
0
 protected ConnectStep(IRandPicker <PermissiveRoomGen <T> > genericHalls)
 {
     this.GenericHalls = genericHalls;
 }
 public AddSpecialRoomTestStep(IRandPicker <RoomGen <IFloorPlanTestContext> > rooms, IRandPicker <PermissiveRoomGen <IFloorPlanTestContext> > halls)
     : base(rooms, halls)
 {
 }
Example #12
0
 public ConnectBranchStep(IRandPicker <PermissiveRoomGen <T> > genericHalls)
     : base(genericHalls)
 {
 }
Example #13
0
 public AddDisconnectedRoomsStep(IRandPicker <RoomGen <T> > genericRooms)
     : base()
 {
     this.GenericRooms = genericRooms;
     this.Components   = new ComponentCollection();
 }
Example #14
0
 public SpreadPlanQuota(IRandPicker <int> quota, IntRange floorRange) : base(floorRange)
 {
     Quota = quota;
 }
Example #15
0
 protected LoopedRand(LoopedRand <T> other)
 {
     this.spawner       = other.spawner.CopyState();
     this.amountSpawner = other.amountSpawner.CopyState();
 }
Example #16
0
 public AddSpecialRoomStep(IRandPicker <RoomGen <T> > rooms, IRandPicker <PermissiveRoomGen <T> > halls)
 {
     this.Rooms = rooms;
     this.Halls = halls;
 }
Example #17
0
 protected ConnectStep(IRandPicker <PermissiveRoomGen <T> > genericHalls)
 {
     this.GenericHalls = genericHalls;
     this.Components   = new ComponentCollection();
     this.Filters      = new List <BaseRoomFilter>();
 }