Class BattleEvalConstants

java.lang.Object
net.sf.colossus.ai.helper.BattleEvalConstants

public class BattleEvalConstants extends Object
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 Details

    • OFFBOARD_DEATH_SCALE_FACTOR

      public int OFFBOARD_DEATH_SCALE_FACTOR
      Will be multiplied by point value of creature
    • NATIVE_BONUS_TERRAIN

      public final int NATIVE_BONUS_TERRAIN
      Straight value
      See Also:
    • NATIVE_BOG

      public final int NATIVE_BOG
      Straight value
      See Also:
    • NON_NATIVE_PENALTY_TERRAIN

      public final int NON_NATIVE_PENALTY_TERRAIN
      Straight value
      See Also:
    • PENALTY_DAMAGE_TERRAIN

      public final int PENALTY_DAMAGE_TERRAIN
      Multiplied by damage (drift is 1)
      See Also:
    • BONUS_HEAL_TERRAIN

      public final int BONUS_HEAL_TERRAIN
      Multiplied by healing (spring is 1)
      See Also:
    • FIRST_RANGESTRIKE_TARGET

      public final int FIRST_RANGESTRIKE_TARGET
      Straight value
      See Also:
    • EXTRA_RANGESTRIKE_TARGET

      public final int EXTRA_RANGESTRIKE_TARGET
      Straight value
      See Also:
    • RANGESTRIKE_TITAN

      public final int RANGESTRIKE_TITAN
      Straight value
      See Also:
    • RANGESTRIKE_WITHOUT_PENALTY

      public final int RANGESTRIKE_WITHOUT_PENALTY
      Straight value
      See Also:
    • ATTACKER_ADJACENT_TO_ENEMY

      public final int ATTACKER_ADJACENT_TO_ENEMY
      Straight value
      See Also:
    • DEFENDER_ADJACENT_TO_ENEMY

      public final int DEFENDER_ADJACENT_TO_ENEMY
      Straight value
      See Also:
    • ADJACENT_TO_ENEMY_TITAN

      public final int ADJACENT_TO_ENEMY_TITAN
      Straight value
      See Also:
    • ADJACENT_TO_RANGESTRIKER

      public final int ADJACENT_TO_RANGESTRIKER
      Straight value
      See Also:
    • ATTACKER_KILL_SCALE_FACTOR

      public final int ATTACKER_KILL_SCALE_FACTOR
      Multiplied by Kill Value (Point Value + stuff!)
      See Also:
    • DEFENDER_KILL_SCALE_FACTOR

      public final int DEFENDER_KILL_SCALE_FACTOR
      Multiplied by Kill Value (Point Value + stuff!)
      See Also:
    • KILLABLE_TARGETS_SCALE_FACTOR

      public final int KILLABLE_TARGETS_SCALE_FACTOR
      Multiplied by a number of creatures
      See Also:
    • ATTACKER_GET_KILLED_SCALE_FACTOR

      public final int ATTACKER_GET_KILLED_SCALE_FACTOR
      Multiplied by Kill Value (Point Value + stuff!)
      See Also:
    • DEFENDER_GET_KILLED_SCALE_FACTOR

      public final int DEFENDER_GET_KILLED_SCALE_FACTOR
      Multiplied by Kill Value (Point Value + stuff!)
      See Also:
    • ATTACKER_GET_HIT_SCALE_FACTOR

      public final int ATTACKER_GET_HIT_SCALE_FACTOR
      Multiplied by Kill Value (Point Value + stuff!)
      See Also:
    • DEFENDER_GET_HIT_SCALE_FACTOR

      public final int DEFENDER_GET_HIT_SCALE_FACTOR
      Multiplied by Kill Value (Point Value + stuff!)
      See Also:
    • TITAN_TOWER_HEIGHT_BONUS

      public final int TITAN_TOWER_HEIGHT_BONUS
      Multiplied by hex elevation
      See Also:
    • DEFENDER_TOWER_HEIGHT_BONUS

      public final int DEFENDER_TOWER_HEIGHT_BONUS
      Multiplied by hex elevation
      See Also:
    • TITAN_FORWARD_EARLY_PENALTY

      public final int TITAN_FORWARD_EARLY_PENALTY
      Multiplied by the distance to entrance
      See Also:
    • TITAN_BY_EDGE_OR_BLOCKINGHAZARD_BONUS

      public final int TITAN_BY_EDGE_OR_BLOCKINGHAZARD_BONUS
      Multiplied by the number of relevant hex
      See Also:
    • DEFENDER_BY_EDGE_OR_BLOCKINGHAZARD_BONUS

      public int DEFENDER_BY_EDGE_OR_BLOCKINGHAZARD_BONUS
      Multiplied by the number of relevant hex
    • DEFENDER_BY_DAMAGINGHAZARD_BONUS

      public int DEFENDER_BY_DAMAGINGHAZARD_BONUS
      Multiplied by the number of relevant hex
    • DEFENDER_FORWARD_EARLY_PENALTY

      public final int DEFENDER_FORWARD_EARLY_PENALTY
      Multiplied by the distance to 2nd row
      See Also:
    • ATTACKER_DISTANCE_FROM_ENEMY_PENALTY

      public final int ATTACKER_DISTANCE_FROM_ENEMY_PENALTY
      Multiplied by the distance to enemy
      See Also:
    • ADJACENT_TO_BUDDY

      public final int ADJACENT_TO_BUDDY
      Multiplied by the number of relevant hex
      See Also:
    • ADJACENT_TO_BUDDY_TITAN

      public final int ADJACENT_TO_BUDDY_TITAN
      Multiplied by the number of relevant hex
      See Also:
    • GANG_UP_ON_CREATURE

      public final int GANG_UP_ON_CREATURE
      Straight value
      See Also:
    • DEF__NOBODY_GETS_HURT

      public final int DEF__NOBODY_GETS_HURT
      Bonus when no defender will be reachable by the attacker next half-turn.
      See Also:
    • DEF__NOONE_IS_GANGBANGED

      public final int DEF__NOONE_IS_GANGBANGED
      Bonus 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_REACHABLE
      Bonus when at most one defender will be reachable by the attacker next half-turn.
      See Also:
  • Constructor Details

    • BattleEvalConstants

      public BattleEvalConstants()