Ejemplo n.º 1
0
        //---------------------------------------------------------------------------

        private void FindCorners(List <Room> rooms, List <Corridor> corridors)
        {
            foreach (Room room in rooms)
            {
                Corners.Add(room.TopLeft());
                Corners.Add(room.TopRight());
                Corners.Add(room.BottomLeft());
                Corners.Add(room.BottomRight());
            }
            foreach (Corridor corridor in corridors)
            {
                Corners.AddRange(corridor.Corners);
            }
        }