Document all undocumented methods and properties
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-16 13:59:36 +02:00
parent 810cdbb15a
commit fdfca99e71
27 changed files with 384 additions and 39 deletions

View File

@@ -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);

View File

@@ -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;