PkmnLib.NET/PkmnLib.Dynamic/Libraries/MiscLibrary.cs

24 lines
702 B
C#
Raw Normal View History

2024-07-27 14:26:45 +00:00
using PkmnLib.Dynamic.Models;
using PkmnLib.Dynamic.Models.Choices;
using PkmnLib.Static;
namespace PkmnLib.Dynamic.Libraries;
/// <summary>
/// Miscellaneous handlings for battles.
/// </summary>
2024-07-27 14:26:45 +00:00
public interface IMiscLibrary
{
/// <summary>
/// Returns the choice that's used when a Pokemon is unable to make the move choice it wants to, or when it has no
/// moves left, yet wants to make a move.
/// </summary>
ITurnChoice ReplacementChoice(IPokemon user, byte targetSide, byte targetPosition);
2025-03-02 16:19:57 +00:00
2024-07-27 14:26:45 +00:00
/// <summary>
/// Gets the current time of day for the battle.
/// </summary>
TimeOfDay GetTimeOfDay();
bool CanFlee(IBattle battle, IFleeChoice fleeChoice);
2024-07-27 14:26:45 +00:00
}