Table of Contents

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

gameManager GameManager

Reference 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

unit UnitSystem

Returns

Task

GetAliveEnemyUnits()

Gets all enemy units that are currently alive.

public List<UnitSystem> GetAliveEnemyUnits()

Returns

List<UnitSystem>

GetAlivePlayerUnits()

Gets all player units that are currently alive.

public List<UnitSystem> GetAlivePlayerUnits()

Returns

List<UnitSystem>

SetMapSystem(MapSystem)

Sets the MapSystem reference for AI pathfinding and queries.

public void SetMapSystem(MapSystem map)

Parameters

map MapSystem

SetUnitReferences(List<UnitSystem>, List<UnitSystem>)

Sets the references to player and enemy unit collections.

public void SetUnitReferences(List<UnitSystem> playerUnits, List<UnitSystem> enemyUnits)

Parameters

playerUnits List<UnitSystem>
enemyUnits List<UnitSystem>