Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -10,20 +10,20 @@ public interface ISwitchChoice : ITurnChoice
|
||||
/// <summary>
|
||||
/// The Pokémon to switch to.
|
||||
/// </summary>
|
||||
IPokemon SwitchTo { get; }
|
||||
IBattlePokemon SwitchTo { get; }
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="ISwitchChoice"/>
|
||||
public class SwitchChoice : TurnChoice, ISwitchChoice
|
||||
{
|
||||
/// <inheritdoc cref="SwitchChoice"/>
|
||||
public SwitchChoice(IPokemon user, IPokemon switchTo) : base(user)
|
||||
public SwitchChoice(IBattlePokemon user, IBattlePokemon switchTo) : base(user)
|
||||
{
|
||||
SwitchTo = switchTo;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public IPokemon SwitchTo { get; }
|
||||
public IBattlePokemon SwitchTo { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public override int ScriptCount => User.ScriptCount;
|
||||
|
||||
Reference in New Issue
Block a user