Package net.sf.colossus.ai.objectives
Class DestroyCreatureTacticalObjective
- java.lang.Object
-
- net.sf.colossus.ai.objectives.AbstractTacticalObjective
-
- net.sf.colossus.ai.objectives.DestroyCreatureTacticalObjective
-
- All Implemented Interfaces:
TacticalObjective
class DestroyCreatureTacticalObjective extends AbstractTacticalObjective
The tactical objective of killing a certain number of a specific CreatureType. The evaluation function currently return the highest amount of point gang-banging any one of the creaturetype in the opposing legion, multiplied by the priority. Rangestriker count for half. This is capped to 0 if the objective is already attained. The objective is attained whenever the number of creature are missing in the opposing legion.- Author:
- Romain Dolbeau
-
-
Constructor Summary
Constructors Constructor Description DestroyCreatureTacticalObjective(float priority, Client client, Legion killlegion, Creature critter, int number)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Get the description of this objective.booleanobjectiveAttained()Whether the objective is already achievedValueRecordersituationContributeToTheObjective()How much does the 'current situation' contributes to the objective.-
Methods inherited from class net.sf.colossus.ai.objectives.AbstractTacticalObjective
changePriority, getPriority
-
-
-
-
Method Detail
-
objectiveAttained
public boolean objectiveAttained()
Description copied from interface:TacticalObjectiveWhether the objective is already achieved- Returns:
- Whether the objective is already achieved
-
situationContributeToTheObjective
public ValueRecorder situationContributeToTheObjective()
Description copied from interface:TacticalObjectiveHow 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
-
getDescription
public java.lang.String getDescription()
Description copied from interface:TacticalObjectiveGet the description of this objective.- Returns:
- The description of this objective.
-
-