public void Generate(int seed, string fileName ) { this.seed = seed; this.entry = null; this.fileName = fileName; rand = new Random(seed); Start = new Loc3D(this[0].BorderPoints[0].X, this[0].BorderPoints[0].Y, 0); }
public override void Generate(int seed, RDungeonEntry entry) { this.seed = seed; this.entry = entry; rand = new Random(seed); for (int i = 0; i < entry.Floors.Count - 1; i++) { floorLinks.Add(new FloorLink(i, 1), new FloorLink(i + 1, 0)); } floorLinks.Add(new FloorLink(entry.Floors.Count - 1, 1), new FloorLink(-1, 0)); Start = new Loc3D(this[0].BorderPoints[0].X, this[0].BorderPoints[0].Y, 0); }
public static int DistanceInFront3D(Loc3D loc1, Loc3D loc2, Direction3D dir) { return(DistanceInFront3D(loc1.X, loc1.Y, loc1.Z, loc2.X, loc2.Y, loc2.Z, dir)); }
public static Direction3D GetDirection3D(Loc3D loc1, Loc3D loc2) { return(GetDirection3D(loc1.X, loc1.Y, loc1.Z, loc2.X, loc2.Y, loc2.Z)); }
public static void MoveInDirection3D(ref Loc3D loc, Direction3D dir, int length) { MoveInDirection3D(ref loc.X, ref loc.Y, loc.Z, dir, length); }
public Loc3D(Loc3D loc) { X = loc.X; Y = loc.Y; Z = loc.Z; }