19 lines
824 B
C#
19 lines
824 B
C#
namespace BaseGames.AI
|
|
{
|
|
/// <summary>战斗/能力调度接口(第 3 阶段由 CombatantAdapter 适配能力注册表)。</summary>
|
|
public interface ICombatant
|
|
{
|
|
bool UseAbility(string abilityId);
|
|
bool IsAbilityRunning(string abilityId = null); // null = 任意能力
|
|
bool NoAbilityRunning { get; }
|
|
bool CanUseAbility(string abilityId);
|
|
void InterruptAbilities(); // 中断当前所有能力(如退出追击时停追击能力)
|
|
|
|
/// <summary>攻击选择器中是否有"够得着且未冷却"的招(供 Approach→Attack 转换)。</summary>
|
|
bool HasEligibleAttack();
|
|
|
|
/// <summary>按敌人配置的选招模式选一个攻击并触发;返回是否成功触发。</summary>
|
|
bool UseBestAttack();
|
|
}
|
|
}
|