Example #1
0
 public bool IsConnected(Room otherRoom) => ConnectedRooms.Contains(otherRoom);
 /// <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));
 }