net.sf.colossus.ai.objectives
Class BasicObjectiveHelper
java.lang.Object
net.sf.colossus.ai.objectives.BasicObjectiveHelper
- All Implemented Interfaces:
- IObjectiveHelper
public class BasicObjectiveHelper
- extends java.lang.Object
- implements IObjectiveHelper
A naive (basic!) implementation of @IObjectiveHelper.
This is still mostly for testing the code.
- Author:
- Romain Dolbeau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
private static final java.util.logging.Logger LOGGER
oec
private final BasicObjectiveHelper.ObjectiveEvalConstants oec
client
private final Client client
ai
private final AbstractAI ai
variant
private final Variant variant
HEURISTIC_ORDER
private static final java.util.Comparator<BasicObjectiveHelper.AllThereIsToKnowAboutYourCreature> HEURISTIC_ORDER
BasicObjectiveHelper
public BasicObjectiveHelper(Client client,
AbstractAI ai,
Variant variant)
findCreatureToDestroyInAttacker
private BasicObjectiveHelper.AllThereIsToKnowAboutYourCreature findCreatureToDestroyInAttacker()
- really stupid heuristic
commonObjective
private java.util.List<TacticalObjective> commonObjective(Legion myself)
attackerObjective
public java.util.List<TacticalObjective> attackerObjective()
- Currently attackerObjective is very dumb:
try and kill the Titan (if there) and the biggest creature
- Specified by:
attackerObjective
in interface IObjectiveHelper
defenderObjective
public java.util.List<TacticalObjective> defenderObjective()
- Specified by:
defenderObjective
in interface IObjectiveHelper