Getting started with implementing an explicit AI, based on the Essentials one.
All checks were successful
Build / Build (push) Successful in 1m2s
All checks were successful
Build / Build (push) Successful in 1m2s
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using PkmnLib.Dynamic.Models;
|
||||
|
||||
namespace PkmnLib.Dynamic.ScriptHandling;
|
||||
|
||||
// These interfaces are used for the AI to determine contextual information about the battle.
|
||||
|
||||
/// <summary>
|
||||
/// Script for getting the number of turns left on a script by the AI.
|
||||
/// </summary>
|
||||
public interface IAIInfoScriptNumberTurnsLeft
|
||||
{
|
||||
/// <summary>
|
||||
/// This function returns the number of turns left on the script. This is used for scripts that have a
|
||||
/// limited number of turns, such as Sleep or Confusion.
|
||||
/// </summary>
|
||||
int TurnsLeft();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Script for getting the expected end of turn damage by the AI.
|
||||
/// </summary>
|
||||
public interface IAIInfoScriptExpectedEndOfTurnDamage
|
||||
{
|
||||
/// <summary>
|
||||
/// This function returns the expected end of turn damage for the script. This is used for scripts that
|
||||
/// have an end of turn effect, such as Poison or Burn.
|
||||
/// </summary>
|
||||
void ExpectedEndOfTurnDamage(IPokemon pokemon, ref int damage);
|
||||
}
|
||||
Reference in New Issue
Block a user