Ejemplo 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);
            }
        }
Ejemplo n.º 2
0
 public void SetPassageway(Passageway a_Passageway, Direction a_Direction)
 {
     connections[(int)a_Direction] = a_Passageway;
 }