Beispiel #1
0
    private void ReconctingGrath(BfsNode i_goodStart)
    {
        BfsNode  son = i_goodStart;
        BfsNode  dad = son.perent;
        RoomNode n1 = m_rooms[(int)son.mySpot.y, (int)son.mySpot.x], n2 = m_rooms[(int)dad.mySpot.y, (int)dad.mySpot.x];

        while (n2.m_activRoom == false)
        {
            n2.ActivatRoom(new List <RoomNode> {
                n1
            });
            son = dad;
            dad = dad.perent;
        }
        n2.m_niebringRooms.Add(n1);
        n1.m_niebringRooms.Add(n2);

        n2.refRoom.FindTheDoorBetwin2RoomsAndActivate(n1.refRoom);
    }