feat(enemy): ICombatant 增加 HasEligibleAttack/UseBestAttack + EnemyBase 构建选择器

This commit is contained in:
2026-07-24 12:20:54 +08:00
parent 04a267b69f
commit 702df35efd
4 changed files with 60 additions and 0 deletions
+6
View File
@@ -8,5 +8,11 @@ namespace BaseGames.AI
bool NoAbilityRunning { get; }
bool CanUseAbility(string abilityId);
void InterruptAbilities(); // 中断当前所有能力(如退出追击时停追击能力)
/// <summary>攻击选择器中是否有"够得着且未冷却"的招(供 Approach→Attack 转换)。</summary>
bool HasEligibleAttack();
/// <summary>按敌人配置的选招模式选一个攻击并触发;返回是否成功触发。</summary>
bool UseBestAttack();
}
}