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
unitUnitSystem
Methods
EvaluateDefensiveAction(Vector3I, Vector3I, BattleState)
Evaluates the value of a defensive/retreat action.
public float EvaluateDefensiveAction(Vector3I currentPos, Vector3I newPos, BattleState battleState)
Parameters
currentPosVector3ICurrent position.
newPosVector3IPosition to retreat to.
battleStateBattleStateCurrent 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
targetUnitSystemThe target being attacked.
skillSkillSystemThe skill being used.
attackerPosVector3IPosition attacker will be in when using skill.
targetPosVector3IPosition of the target.
battleStateBattleStateCurrent battle state.
requiresMovementboolWhether 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
allyUnitSystemThe ally being supported.
skillSkillSystemThe skill being used.
casterPosVector3IPosition caster will be in when using skill.
targetPosVector3IPosition of the ally.
battleStateBattleStateCurrent battle state.
requiresMovementboolWhether this action requires movement first.
Returns
- float
Score representing the value of this action.