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