Package net.sf.colossus.ai.helper
Class BattleEvalConstants
java.lang.Object
net.sf.colossus.ai.helper.BattleEvalConstants
Various constants used by the AIs code for battle evaluation.
Each specific AI should be able to override them
to tweak the evaluation results w/o rewriting the code.
So if an AI needs to modify one or more of those, feel free to
remove the 'final' from the appropriate variable(s);
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
Multiplied by the number of relevant hexfinal int
Multiplied by the number of relevant hexfinal int
Straight valuefinal int
Straight valuefinal int
Straight valuefinal int
Multiplied by the distance to enemyfinal int
Multiplied by Kill Value (Point Value + stuff!)final int
Multiplied by Kill Value (Point Value + stuff!)final int
Multiplied by Kill Value (Point Value + stuff!)final int
Multiplied by healing (spring is 1)final int
Bonus when at most one defender will be reachable by the attacker next half-turn.final int
Bonus when no defender will be reachable by the attacker next half-turn.final int
Bonus when no defender will be reachable by more than one attacker next half-turn.final int
Straight valueint
Multiplied by the number of relevant hexint
Multiplied by the number of relevant hexfinal int
Multiplied by the distance to 2nd rowfinal int
Multiplied by Kill Value (Point Value + stuff!)final int
Multiplied by Kill Value (Point Value + stuff!)final int
Multiplied by Kill Value (Point Value + stuff!)final int
Multiplied by hex elevationfinal int
Straight valuefinal int
Straight valuefinal int
Straight valuefinal int
Multiplied by a number of creaturesfinal int
Straight valuefinal int
Straight valuefinal int
Straight valueint
Will be multiplied by point value of creaturefinal int
Multiplied by damage (drift is 1)final int
Straight valuefinal int
Straight valuefinal int
Multiplied by the number of relevant hexfinal int
Multiplied by the distance to entrancefinal int
Multiplied by hex elevation -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
OFFBOARD_DEATH_SCALE_FACTOR
public int OFFBOARD_DEATH_SCALE_FACTORWill be multiplied by point value of creature -
NATIVE_BONUS_TERRAIN
public final int NATIVE_BONUS_TERRAINStraight value- See Also:
-
NATIVE_BOG
public final int NATIVE_BOGStraight value- See Also:
-
NON_NATIVE_PENALTY_TERRAIN
public final int NON_NATIVE_PENALTY_TERRAINStraight value- See Also:
-
PENALTY_DAMAGE_TERRAIN
public final int PENALTY_DAMAGE_TERRAINMultiplied by damage (drift is 1)- See Also:
-
BONUS_HEAL_TERRAIN
public final int BONUS_HEAL_TERRAINMultiplied by healing (spring is 1)- See Also:
-
FIRST_RANGESTRIKE_TARGET
public final int FIRST_RANGESTRIKE_TARGETStraight value- See Also:
-
EXTRA_RANGESTRIKE_TARGET
public final int EXTRA_RANGESTRIKE_TARGETStraight value- See Also:
-
RANGESTRIKE_TITAN
public final int RANGESTRIKE_TITANStraight value- See Also:
-
RANGESTRIKE_WITHOUT_PENALTY
public final int RANGESTRIKE_WITHOUT_PENALTYStraight value- See Also:
-
ATTACKER_ADJACENT_TO_ENEMY
public final int ATTACKER_ADJACENT_TO_ENEMYStraight value- See Also:
-
DEFENDER_ADJACENT_TO_ENEMY
public final int DEFENDER_ADJACENT_TO_ENEMYStraight value- See Also:
-
ADJACENT_TO_ENEMY_TITAN
public final int ADJACENT_TO_ENEMY_TITANStraight value- See Also:
-
ADJACENT_TO_RANGESTRIKER
public final int ADJACENT_TO_RANGESTRIKERStraight value- See Also:
-
ATTACKER_KILL_SCALE_FACTOR
public final int ATTACKER_KILL_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)- See Also:
-
DEFENDER_KILL_SCALE_FACTOR
public final int DEFENDER_KILL_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)- See Also:
-
KILLABLE_TARGETS_SCALE_FACTOR
public final int KILLABLE_TARGETS_SCALE_FACTORMultiplied by a number of creatures- See Also:
-
ATTACKER_GET_KILLED_SCALE_FACTOR
public final int ATTACKER_GET_KILLED_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)- See Also:
-
DEFENDER_GET_KILLED_SCALE_FACTOR
public final int DEFENDER_GET_KILLED_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)- See Also:
-
ATTACKER_GET_HIT_SCALE_FACTOR
public final int ATTACKER_GET_HIT_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)- See Also:
-
DEFENDER_GET_HIT_SCALE_FACTOR
public final int DEFENDER_GET_HIT_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)- See Also:
-
TITAN_TOWER_HEIGHT_BONUS
public final int TITAN_TOWER_HEIGHT_BONUSMultiplied by hex elevation- See Also:
-
DEFENDER_TOWER_HEIGHT_BONUS
public final int DEFENDER_TOWER_HEIGHT_BONUSMultiplied by hex elevation- See Also:
-
TITAN_FORWARD_EARLY_PENALTY
public final int TITAN_FORWARD_EARLY_PENALTYMultiplied by the distance to entrance- See Also:
-
TITAN_BY_EDGE_OR_BLOCKINGHAZARD_BONUS
public final int TITAN_BY_EDGE_OR_BLOCKINGHAZARD_BONUSMultiplied by the number of relevant hex- See Also:
-
DEFENDER_BY_EDGE_OR_BLOCKINGHAZARD_BONUS
public int DEFENDER_BY_EDGE_OR_BLOCKINGHAZARD_BONUSMultiplied by the number of relevant hex -
DEFENDER_BY_DAMAGINGHAZARD_BONUS
public int DEFENDER_BY_DAMAGINGHAZARD_BONUSMultiplied by the number of relevant hex -
DEFENDER_FORWARD_EARLY_PENALTY
public final int DEFENDER_FORWARD_EARLY_PENALTYMultiplied by the distance to 2nd row- See Also:
-
ATTACKER_DISTANCE_FROM_ENEMY_PENALTY
public final int ATTACKER_DISTANCE_FROM_ENEMY_PENALTYMultiplied by the distance to enemy- See Also:
-
ADJACENT_TO_BUDDY
public final int ADJACENT_TO_BUDDYMultiplied by the number of relevant hex- See Also:
-
ADJACENT_TO_BUDDY_TITAN
public final int ADJACENT_TO_BUDDY_TITANMultiplied by the number of relevant hex- See Also:
-
GANG_UP_ON_CREATURE
public final int GANG_UP_ON_CREATUREStraight value- See Also:
-
DEF__NOBODY_GETS_HURT
public final int DEF__NOBODY_GETS_HURTBonus when no defender will be reachable by the attacker next half-turn.- See Also:
-
DEF__NOONE_IS_GANGBANGED
public final int DEF__NOONE_IS_GANGBANGEDBonus when no defender will be reachable by more than one attacker next half-turn.- See Also:
-
DEF__AT_MOST_ONE_IS_REACHABLE
public final int DEF__AT_MOST_ONE_IS_REACHABLEBonus when at most one defender will be reachable by the attacker next half-turn.- See Also:
-
-
Constructor Details
-
BattleEvalConstants
public BattleEvalConstants()
-