Esempio n. 1
0
        public Room()
        {
            connections    = new Passageway[4];
            number         = 0;
            numConnections = 0;
            number         = RoomID;
            RoomID++;

            for (int i = 0; i < MaxConnections; ++i)
            {
                connections[i] = new Passageway(this, null);
            }
        }
Esempio n. 2
0
 public void SetPassageway(Passageway a_Passageway, Direction a_Direction)
 {
     connections[(int)a_Direction] = a_Passageway;
 }