Package net.sf.colossus.ai.objectives
Class CreatureAttackTacticalObjective
java.lang.Object
net.sf.colossus.ai.objectives.AbstractTacticalObjective
net.sf.colossus.ai.objectives.CreatureAttackTacticalObjective
- All Implemented Interfaces:
TacticalObjective
The objective of sending all of a CreatureType into battle, presumably
because we don't really need them for anything else.
- Author:
- Romain Dolbeau
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AbstractAI
private final BattleEvalConstants
private final Client
private final Creature
private final Legion
-
Constructor Summary
ConstructorsConstructorDescriptionCreatureAttackTacticalObjective
(float priority, Client client, Legion liveLegion, Creature creature, AbstractAI ai, BattleEvalConstants bec) -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Get the description of this objective.boolean
Whether the objective is already achievedThis is mostly a copy/paste from the EvaluateCritterMove_Strike and EvaluateCritterMove_Rangestrike functions in SimpleAI.Methods inherited from class net.sf.colossus.ai.objectives.AbstractTacticalObjective
changePriority, getPriority
-
Field Details
-
creature
-
liveLegion
-
client
-
ai
-
bec
-
-
Constructor Details
-
CreatureAttackTacticalObjective
CreatureAttackTacticalObjective(float priority, Client client, Legion liveLegion, Creature creature, AbstractAI ai, BattleEvalConstants bec)
-
-
Method Details
-
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
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
Description copied from interface:TacticalObjective
Get the description of this objective.- Returns:
- The description of this objective.
-