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
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDestroyCreatureTacticalObjective
(float priority, Client client, Legion killlegion, Creature critter, int number) -
Method Summary
Modifier and TypeMethodDescriptionGet the description of this objective.boolean
Whether the objective is already achievedHow much does the 'current situation' contributes to the objective.Methods inherited from class net.sf.colossus.ai.objectives.AbstractTacticalObjective
changePriority, getPriority
-
Field Details
-
LOGGER
-
critter
-
killlegion
-
client
-
count
private final int count -
number
private final int number
-
-
Constructor Details
-
DestroyCreatureTacticalObjective
-
-
Method Details
-
objectiveAttained
public boolean objectiveAttained()Description copied from interface:TacticalObjective
Whether the objective is already achieved- Returns:
- Whether the objective is already achieved
-
situationContributeToTheObjective
Description copied from interface:TacticalObjective
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
-
getDescription
Description copied from interface:TacticalObjective
Get the description of this objective.- Returns:
- The description of this objective.
-