2024-09-30 17:23:56 +00:00
|
|
|
using PkmnLib.Dynamic.ScriptHandling;
|
|
|
|
|
2024-07-27 14:26:45 +00:00
|
|
|
namespace PkmnLib.Dynamic.Models.Choices;
|
|
|
|
|
2024-07-28 10:52:17 +00:00
|
|
|
/// <summary>
|
|
|
|
/// A choice to switch to a different Pokémon.
|
|
|
|
/// </summary>
|
2024-07-27 14:26:45 +00:00
|
|
|
public interface ISwitchChoice : ITurnChoice
|
|
|
|
{
|
|
|
|
|
2024-09-30 17:23:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/// <inheritdoc cref="ISwitchChoice"/>
|
|
|
|
public class SwitchChoice : TurnChoice, ISwitchChoice
|
|
|
|
{
|
|
|
|
public SwitchChoice(IPokemon user, IPokemon switchTo) : base(user)
|
|
|
|
{
|
|
|
|
SwitchTo = switchTo;
|
|
|
|
}
|
|
|
|
|
|
|
|
public IPokemon SwitchTo { get; }
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public override int ScriptCount => User.ScriptCount;
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public override void GetOwnScripts(List<IEnumerable<ScriptContainer>> scripts)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public override void CollectScripts(List<IEnumerable<ScriptContainer>> scripts)
|
|
|
|
{
|
|
|
|
User.CollectScripts(scripts);
|
|
|
|
}
|
2024-07-27 14:26:45 +00:00
|
|
|
}
|