Class CreatureAttackTacticalObjective

  • All Implemented Interfaces:
    TacticalObjective

    class CreatureAttackTacticalObjective
    extends AbstractTacticalObjective
    The objective of sending all of a CreatureType into battle, presumably because we don't really need them for anything else.
    Author:
    Romain Dolbeau
    • Method Detail

      • objectiveAttained

        public boolean objectiveAttained()
        Description copied from interface: TacticalObjective
        Whether the objective is already achieved
        Returns:
        Whether the objective is already achieved
      • getCount

        public int getCount()
      • situationContributeToTheObjective

        public ValueRecorder situationContributeToTheObjective()
        This is mostly a copy/paste from the EvaluateCritterMove_Strike and EvaluateCritterMove_Rangestrike functions in SimpleAI. This is known. The goal is indeed to replace the big hardwired functions in SimpleAI by a bunch of objectives, so we can tweak what critter does what in an easier way.
        Returns:
        How much does he 'current situation' contributes to the objective
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: TacticalObjective
        Get the description of this objective.
        Returns:
        The description of this objective.