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