Document all undocumented methods and properties
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -132,6 +132,9 @@ public class BattleChoiceQueue : IDeepCloneable
|
||||
public ITurnChoice? FirstOrDefault(Func<ITurnChoice, bool> predicate) =>
|
||||
_choices.Skip(_currentIndex).WhereNotNull().FirstOrDefault(predicate);
|
||||
|
||||
/// <summary>
|
||||
/// This returns all upcoming choices that match the predicate.
|
||||
/// </summary>
|
||||
public IEnumerable<ITurnChoice> Where(Func<ITurnChoice, bool> predicate) =>
|
||||
_choices.Skip(_currentIndex).WhereNotNull().Where(predicate);
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@ using PkmnLib.Static.Utils;
|
||||
|
||||
namespace PkmnLib.Dynamic.Models.BattleFlow;
|
||||
|
||||
/// <summary>
|
||||
/// Helper class for executing moves.
|
||||
/// </summary>
|
||||
public static class MoveTurnExecutor
|
||||
{
|
||||
internal static void ExecuteMoveChoice(IBattle battle, IMoveChoice moveChoice)
|
||||
@@ -88,6 +91,10 @@ public static class MoveTurnExecutor
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes the move for its targets.
|
||||
/// </summary>
|
||||
/// <param name="executingMove"></param>
|
||||
public static void ExecuteMove(IExecutingMove executingMove)
|
||||
{
|
||||
var stopped = false;
|
||||
|
||||
Reference in New Issue
Block a user