Beispiel #1
0
 /// <summary>
 /// Finds a method with a given stage and place notation (uses slow linear search).  Returns null if none is found.
 /// </summary>
 /// <param name="notation">The notation to check for.</param>
 /// <param name="stage">The stage of methods to check.</param>
 /// <returns>The method with that notation and stage.</returns>
 public static Method GetMethodByPlaceNotation(string notation, Stage stage) => GetMethodByPlaceNotation(PlaceNotation.DecodeFullNotation(notation, stage));
Beispiel #2
0
 /// <summary>
 /// Creates a `single` call over the lead end of a given method.
 /// </summary>
 /// <param name="method">The method to which the call belongs.</param>
 /// <param name="notation">The full place notation of the call, e.g. "3.123" for Grandsire Singles.</param>
 /// <param name="calling_positions">The array of calling positions by place at the lead end.</param>
 /// <returns>The `single` call that was created.</returns>
 public static Call LeadEndSingle(Method method, string notation, string [] calling_positions = null) => LeadEndSingle(method, PlaceNotation.DecodeFullNotation(notation, method.stage), calling_positions);