Exemple #1
0
 public void DirFromAxis(Axis4 axis, int scalar, Dir4 expected, bool exception = false)
 {
     if (exception)
     {
         Assert.Throws <ArgumentOutOfRangeException>(() => { axis.GetDir(scalar); });
     }
     else
     {
         Assert.That(axis.GetDir(scalar), Is.EqualTo(expected));
     }
 }
Exemple #2
0
        public void PlaceOrientedHall(Axis4 axis, int scalar, int orth, int scalarDiff, GridPlan floorPlan, PermissiveRoomGen <T> hallGen)
        {
            Loc loc = this.GapAxis.CreateLoc(scalar, orth);

            floorPlan.SetHall(new LocRay4(loc, axis.GetDir(scalarDiff)), hallGen, this.HallComponents.Clone());
        }