/// <summary> /// Create a new player movement check against a colleciton of all /// destination inputs. /// </summary> /// <param name="allDestinationInputs"> /// The collection of all destination inputs. /// </param> /// <returns> /// A new player movement check against the given collection of all /// destination inputs. /// </returns> /// <exception cref="ArgumentNullException"> /// Thrown when the collection of all destination inputs is null. /// </exception> public static DestinationCheck Against( AllDestinationInputs allDestinationInputs) { if (allDestinationInputs == null) { throw new ArgumentNullException(nameof(allDestinationInputs)); } return(new DestinationCheck(allDestinationInputs)); }
private DestinationCheck(AllDestinationInputs allDestinationInputs) { this.allDestinationInputs = allDestinationInputs; }