Ejemplo n.º 1
0
 public bool IsConnected(Room otherRoom) => ConnectedRooms.Contains(otherRoom);
Ejemplo n.º 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));
 }