Interface TacticalObjective

All Known Implementing Classes:
AbstractTacticalObjective, CreatureAttackTacticalObjective, DestroyCreatureTacticalObjective, PreserveCreatureTacticalObjective

public interface TacticalObjective
Interface for a tactical (i.e. when fighting on battlelands) objective. The idea is to set 'objectives' for tha AI to attain when fighting, and then try to bias the moves of the AIs toward achieving said objectives.
Author:
Romain Dolbeau
  • Method Details

    • objectiveAttained

      boolean objectiveAttained()
      Whether the objective is already achieved
      Returns:
      Whether the objective is already achieved
    • situationContributeToTheObjective

      ValueRecorder situationContributeToTheObjective()
      How much does the 'current situation' contributes to the objective. The actual value is currently added to the overall evaluation of the whole legion move.
      Returns:
      How much does he 'current situation' contributes to the objective
    • getPriority

      float getPriority()
      Get the current priority of this objective.
      Returns:
      The current priority of this objective.
    • getDescription

      String getDescription()
      Get the description of this objective.
      Returns:
      The description of this objective.
    • changePriority

      float changePriority(float newPriority)
      Change the priority of this objective.
      Parameters:
      newPriority - The new priority.
      Returns:
      The old priority.