Table of Contents

Class AIEvaluator

Namespace
AshesOfVelsingrad.AI
Assembly
Ashes of Velsingrad.dll

Evaluates and scores AI actions and targets.

public class AIEvaluator
Inheritance
AIEvaluator
Inherited Members

Constructors

AIEvaluator(UnitSystem)

public AIEvaluator(UnitSystem unit)

Parameters

unit UnitSystem

Methods

EvaluateDefensiveAction(Vector3I, Vector3I, BattleState)

Evaluates the value of a defensive/retreat action.

public float EvaluateDefensiveAction(Vector3I currentPos, Vector3I newPos, BattleState battleState)

Parameters

currentPos Vector3I

Current position.

newPos Vector3I

Position to retreat to.

battleState BattleState

Current battle state.

Returns

float

Score representing the value of this action.

EvaluateOffensiveAction(UnitSystem, SkillSystem, Vector3I, Vector3I, BattleState, bool)

Evaluates the value of an offensive action.

public float EvaluateOffensiveAction(UnitSystem target, SkillSystem skill, Vector3I attackerPos, Vector3I targetPos, BattleState battleState, bool requiresMovement)

Parameters

target UnitSystem

The target being attacked.

skill SkillSystem

The skill being used.

attackerPos Vector3I

Position attacker will be in when using skill.

targetPos Vector3I

Position of the target.

battleState BattleState

Current battle state.

requiresMovement bool

Whether this action requires movement first.

Returns

float

Score representing the value of this action.

EvaluateSupportAction(UnitSystem, SkillSystem, Vector3I, Vector3I, BattleState, bool)

Evaluates the value of a support action.

public float EvaluateSupportAction(UnitSystem ally, SkillSystem skill, Vector3I casterPos, Vector3I targetPos, BattleState battleState, bool requiresMovement)

Parameters

ally UnitSystem

The ally being supported.

skill SkillSystem

The skill being used.

casterPos Vector3I

Position caster will be in when using skill.

targetPos Vector3I

Position of the ally.

battleState BattleState

Current battle state.

requiresMovement bool

Whether this action requires movement first.

Returns

float

Score representing the value of this action.