示例#1
0
 public Door(Room room1, Room room2)
 {
     this.room1 = room1;
     this.room2 = room2;
 }
示例#2
0
 public void AddRoom(Room room)
 {
     rooms.Add(room.RoomNumber, room);
 }
示例#3
0
 public Room OtherSideFrom(Room room)
 {
     return room == room1 ? room2 : room1;
 }