Implements move execution for battle

This commit is contained in:
2024-08-10 11:18:10 +02:00
parent a049dda240
commit 488c717c5a
17 changed files with 433 additions and 14 deletions

View File

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