Move all battle state from IPokemon to an ephemeral IBattlePokemon wrapper
This commit is contained in:
@@ -11,7 +11,7 @@ public interface ITurnChoice : IScriptSource, IDeepCloneable
|
||||
/// <summary>
|
||||
/// The user of the turn choice
|
||||
/// </summary>
|
||||
IPokemon User { get; }
|
||||
IBattlePokemon User { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The speed of the user at the beginning of the turn.
|
||||
@@ -34,7 +34,7 @@ public interface ITurnChoice : IScriptSource, IDeepCloneable
|
||||
/// Fails the choice. This will prevent it from executing and run a specific fail handling during
|
||||
/// execution. Note that this can not be undone.
|
||||
/// </summary>
|
||||
public void Fail();
|
||||
void Fail();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -43,7 +43,7 @@ public interface ITurnChoice : IScriptSource, IDeepCloneable
|
||||
public abstract class TurnChoice : ScriptSource, ITurnChoice
|
||||
{
|
||||
/// <inheritdoc cref="TurnChoice"/>
|
||||
protected TurnChoice(IPokemon user)
|
||||
protected TurnChoice(IBattlePokemon user)
|
||||
{
|
||||
User = user;
|
||||
}
|
||||
@@ -51,7 +51,7 @@ public abstract class TurnChoice : ScriptSource, ITurnChoice
|
||||
/// <summary>
|
||||
/// The Pokemon for which the choice is made.
|
||||
/// </summary>
|
||||
public IPokemon User { get; }
|
||||
public IBattlePokemon User { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The speed of the user at the beginning of the turn.
|
||||
|
||||
Reference in New Issue
Block a user