Class EnemyAIManager
- Namespace
- AshesOfVelsingrad.Managers
- Assembly
- Ashes of Velsingrad.dll
Manages AI decision-making for enemy units during combat. This is NOT a singleton - it's created per battle by GameManager.
public class EnemyAIManager
- Inheritance
-
EnemyAIManager
- Inherited Members
Constructors
EnemyAIManager(GameManager)
Creates a new EnemyAIManager instance for a specific battle.
public EnemyAIManager(GameManager gameManager)
Parameters
gameManagerGameManagerReference to the GameManager controlling this battle.
Methods
ExecuteAITurn(UnitSystem)
Executes AI logic for a specific enemy unit's turn.
public Task ExecuteAITurn(UnitSystem unit)
Parameters
unitUnitSystem
Returns
GetAliveEnemyUnits()
Gets all enemy units that are currently alive.
public List<UnitSystem> GetAliveEnemyUnits()
Returns
GetAlivePlayerUnits()
Gets all player units that are currently alive.
public List<UnitSystem> GetAlivePlayerUnits()
Returns
SetMapSystem(MapSystem)
Sets the MapSystem reference for AI pathfinding and queries.
public void SetMapSystem(MapSystem map)
Parameters
mapMapSystem
SetUnitReferences(List<UnitSystem>, List<UnitSystem>)
Sets the references to player and enemy unit collections.
public void SetUnitReferences(List<UnitSystem> playerUnits, List<UnitSystem> enemyUnits)
Parameters
playerUnitsList<UnitSystem>enemyUnitsList<UnitSystem>