예제 #1
0
 public bool IsConnected(Room otherRoom) => ConnectedRooms.Contains(otherRoom);
예제 #2
0
 /// <summary>
 /// Shows whether this room is commected to the otherRoom
 /// </summary>
 /// <param name="otherRoom"></param>
 /// <returns></returns>
 public bool IsConnected(Room otherRoom)
 {
     return(ConnectedRooms.Contains(otherRoom));
 }