Package net.sf.colossus.ai.helper
Class BattleEvalConstants
- java.lang.Object
-
- net.sf.colossus.ai.helper.BattleEvalConstants
-
public class BattleEvalConstants extends java.lang.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 Summary
Fields Modifier and Type Field Description int
ADJACENT_TO_BUDDY
Multiplied by the number of relevant hexint
ADJACENT_TO_BUDDY_TITAN
Multiplied by the number of relevant hexint
ADJACENT_TO_ENEMY_TITAN
Straight valueint
ADJACENT_TO_RANGESTRIKER
Straight valueint
ATTACKER_ADJACENT_TO_ENEMY
Straight valueint
ATTACKER_DISTANCE_FROM_ENEMY_PENALTY
Multiplied by the distance to enemyint
ATTACKER_GET_HIT_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)int
ATTACKER_GET_KILLED_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)int
ATTACKER_KILL_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)int
BONUS_HEAL_TERRAIN
Multiplied by healing (spring is 1)int
DEF__AT_MOST_ONE_IS_REACHABLE
Bonus when at most one defender will be reachable by the attacker next half-turn.int
DEF__NOBODY_GETS_HURT
Bonus when no defender will be reachable by the attacker next half-turn.int
DEF__NOONE_IS_GANGBANGED
Bonus when no defender will be reachable by more than one attacker next half-turn.int
DEFENDER_ADJACENT_TO_ENEMY
Straight valueint
DEFENDER_BY_DAMAGINGHAZARD_BONUS
Multiplied by the number of relevant hexint
DEFENDER_BY_EDGE_OR_BLOCKINGHAZARD_BONUS
Multiplied by the number of relevant hexint
DEFENDER_FORWARD_EARLY_PENALTY
Multiplied by the distance to 2nd rowint
DEFENDER_GET_HIT_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)int
DEFENDER_GET_KILLED_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)int
DEFENDER_KILL_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)int
DEFENDER_TOWER_HEIGHT_BONUS
Multiplied by hex elevationint
EXTRA_RANGESTRIKE_TARGET
Straight valueint
FIRST_RANGESTRIKE_TARGET
Straight valueint
GANG_UP_ON_CREATURE
Straight valueint
KILLABLE_TARGETS_SCALE_FACTOR
Multiplied by a number of creaturesint
NATIVE_BOG
Straight valueint
NATIVE_BONUS_TERRAIN
Straight valueint
NON_NATIVE_PENALTY_TERRAIN
Straight valueint
OFFBOARD_DEATH_SCALE_FACTOR
Will be multiplied by point value of creatureint
PENALTY_DAMAGE_TERRAIN
Multiplied by damage (drift is 1)int
RANGESTRIKE_TITAN
Straight valueint
RANGESTRIKE_WITHOUT_PENALTY
Straight valueint
TITAN_BY_EDGE_OR_BLOCKINGHAZARD_BONUS
Multiplied by the number of relevant hexint
TITAN_FORWARD_EARLY_PENALTY
Multiplied by the distance to entranceint
TITAN_TOWER_HEIGHT_BONUS
Multiplied by hex elevation
-
Constructor Summary
Constructors Constructor Description BattleEvalConstants()
-
-
-
Field Detail
-
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:
- Constant Field Values
-
NATIVE_BOG
public final int NATIVE_BOG
Straight value- See Also:
- Constant Field Values
-
NON_NATIVE_PENALTY_TERRAIN
public final int NON_NATIVE_PENALTY_TERRAIN
Straight value- See Also:
- Constant Field Values
-
PENALTY_DAMAGE_TERRAIN
public final int PENALTY_DAMAGE_TERRAIN
Multiplied by damage (drift is 1)- See Also:
- Constant Field Values
-
BONUS_HEAL_TERRAIN
public final int BONUS_HEAL_TERRAIN
Multiplied by healing (spring is 1)- See Also:
- Constant Field Values
-
FIRST_RANGESTRIKE_TARGET
public final int FIRST_RANGESTRIKE_TARGET
Straight value- See Also:
- Constant Field Values
-
EXTRA_RANGESTRIKE_TARGET
public final int EXTRA_RANGESTRIKE_TARGET
Straight value- See Also:
- Constant Field Values
-
RANGESTRIKE_TITAN
public final int RANGESTRIKE_TITAN
Straight value- See Also:
- Constant Field Values
-
RANGESTRIKE_WITHOUT_PENALTY
public final int RANGESTRIKE_WITHOUT_PENALTY
Straight value- See Also:
- Constant Field Values
-
ATTACKER_ADJACENT_TO_ENEMY
public final int ATTACKER_ADJACENT_TO_ENEMY
Straight value- See Also:
- Constant Field Values
-
DEFENDER_ADJACENT_TO_ENEMY
public final int DEFENDER_ADJACENT_TO_ENEMY
Straight value- See Also:
- Constant Field Values
-
ADJACENT_TO_ENEMY_TITAN
public final int ADJACENT_TO_ENEMY_TITAN
Straight value- See Also:
- Constant Field Values
-
ADJACENT_TO_RANGESTRIKER
public final int ADJACENT_TO_RANGESTRIKER
Straight value- See Also:
- Constant Field Values
-
ATTACKER_KILL_SCALE_FACTOR
public final int ATTACKER_KILL_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)- See Also:
- Constant Field Values
-
DEFENDER_KILL_SCALE_FACTOR
public final int DEFENDER_KILL_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)- See Also:
- Constant Field Values
-
KILLABLE_TARGETS_SCALE_FACTOR
public final int KILLABLE_TARGETS_SCALE_FACTOR
Multiplied by a number of creatures- See Also:
- Constant Field Values
-
ATTACKER_GET_KILLED_SCALE_FACTOR
public final int ATTACKER_GET_KILLED_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)- See Also:
- Constant Field Values
-
DEFENDER_GET_KILLED_SCALE_FACTOR
public final int DEFENDER_GET_KILLED_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)- See Also:
- Constant Field Values
-
ATTACKER_GET_HIT_SCALE_FACTOR
public final int ATTACKER_GET_HIT_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)- See Also:
- Constant Field Values
-
DEFENDER_GET_HIT_SCALE_FACTOR
public final int DEFENDER_GET_HIT_SCALE_FACTOR
Multiplied by Kill Value (Point Value + stuff!)- See Also:
- Constant Field Values
-
TITAN_TOWER_HEIGHT_BONUS
public final int TITAN_TOWER_HEIGHT_BONUS
Multiplied by hex elevation- See Also:
- Constant Field Values
-
DEFENDER_TOWER_HEIGHT_BONUS
public final int DEFENDER_TOWER_HEIGHT_BONUS
Multiplied by hex elevation- See Also:
- Constant Field Values
-
TITAN_FORWARD_EARLY_PENALTY
public final int TITAN_FORWARD_EARLY_PENALTY
Multiplied by the distance to entrance- See Also:
- Constant Field Values
-
TITAN_BY_EDGE_OR_BLOCKINGHAZARD_BONUS
public final int TITAN_BY_EDGE_OR_BLOCKINGHAZARD_BONUS
Multiplied by the number of relevant hex- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
ATTACKER_DISTANCE_FROM_ENEMY_PENALTY
public final int ATTACKER_DISTANCE_FROM_ENEMY_PENALTY
Multiplied by the distance to enemy- See Also:
- Constant Field Values
-
ADJACENT_TO_BUDDY
public final int ADJACENT_TO_BUDDY
Multiplied by the number of relevant hex- See Also:
- Constant Field Values
-
ADJACENT_TO_BUDDY_TITAN
public final int ADJACENT_TO_BUDDY_TITAN
Multiplied by the number of relevant hex- See Also:
- Constant Field Values
-
GANG_UP_ON_CREATURE
public final int GANG_UP_ON_CREATURE
Straight value- See Also:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
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:
- Constant Field Values
-
-