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
EnemyUnits
All alive enemy units.
public required List<UnitSystem> EnemyUnits { get; init; }
Property Value
GameManager
Reference to GameManager for executing actions.
public required GameManager GameManager { get; init; }
Property Value
MapSystem
Reference to the map system for position queries.
public required MapSystem MapSystem { get; init; }
Property Value
PlayerUnits
All alive player units.
public required List<UnitSystem> PlayerUnits { get; init; }
Property Value
Methods
MoveUnitTo(Vector3I)
Moves the acting unit to a target position using GameManager.
public void MoveUnitTo(Vector3I targetCell)
Parameters
targetCellVector3I
UseSkillOn(UnitSystem, SkillSystem)
Uses a skill on a target through GameManager.
public void UseSkillOn(UnitSystem target, SkillSystem skill)
Parameters
targetUnitSystemskillSkillSystem