Implements move execution for battle
This commit is contained in:
@@ -10,7 +10,7 @@ public interface IMoveChoice : ITurnChoice
|
||||
/// <summary>
|
||||
/// The move that is used.
|
||||
/// </summary>
|
||||
ILearnedMove UsedMove { get; }
|
||||
ILearnedMove ChosenMove { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The side the move is targeted at.
|
||||
@@ -39,13 +39,13 @@ public class MoveChoice : TurnChoice, IMoveChoice
|
||||
/// <inheritdoc cref="MoveChoice"/>
|
||||
public MoveChoice(IPokemon user, ILearnedMove usedMove, byte targetSide, byte targetPosition) : base(user)
|
||||
{
|
||||
UsedMove = usedMove;
|
||||
ChosenMove = usedMove;
|
||||
TargetSide = targetSide;
|
||||
TargetPosition = targetPosition;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public ILearnedMove UsedMove { get; }
|
||||
public ILearnedMove ChosenMove { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public byte TargetSide { get; }
|
||||
|
||||
@@ -5,6 +5,7 @@ namespace PkmnLib.Dynamic.Models.Choices;
|
||||
/// </summary>
|
||||
public class TurnChoiceComparer : IComparer<ITurnChoice>
|
||||
{
|
||||
/// <inheritdoc cref="TurnChoiceComparer"/>
|
||||
public static TurnChoiceComparer Instance { get; } = new();
|
||||
|
||||
private enum CompareValues
|
||||
|
||||
Reference in New Issue
Block a user