Table of Contents

Class BattleState

Namespace
AshesOfVelsingrad.Managers
Assembly
Ashes of Velsingrad.dll

Represents a snapshot of the battle state at a specific moment. Used by AI to make decisions based on current conditions.

public class BattleState
Inheritance
BattleState
Inherited Members

Properties

ActingUnit

The unit currently making decisions.

public required UnitSystem ActingUnit { get; init; }

Property Value

UnitSystem

EnemyUnits

All alive enemy units.

public required List<UnitSystem> EnemyUnits { get; init; }

Property Value

List<UnitSystem>

GameManager

Reference to GameManager for executing actions.

public required GameManager GameManager { get; init; }

Property Value

GameManager

MapSystem

Reference to the map system for position queries.

public required MapSystem MapSystem { get; init; }

Property Value

MapSystem

PlayerUnits

All alive player units.

public required List<UnitSystem> PlayerUnits { get; init; }

Property Value

List<UnitSystem>

Methods

MoveUnitTo(Vector3I)

Moves the acting unit to a target position using GameManager.

public void MoveUnitTo(Vector3I targetCell)

Parameters

targetCell Vector3I

UseSkillOn(UnitSystem, SkillSystem)

Uses a skill on a target through GameManager.

public void UseSkillOn(UnitSystem target, SkillSystem skill)

Parameters

target UnitSystem
skill SkillSystem