Package net.sf.colossus.ai.helper
Class BattleEvalConstants
- java.lang.Object
-
- net.sf.colossus.ai.helper.BattleEvalConstants
-
public class BattleEvalConstants extends java.lang.ObjectVarious 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 intADJACENT_TO_BUDDYMultiplied by the number of relevant hexintADJACENT_TO_BUDDY_TITANMultiplied by the number of relevant hexintADJACENT_TO_ENEMY_TITANStraight valueintADJACENT_TO_RANGESTRIKERStraight valueintATTACKER_ADJACENT_TO_ENEMYStraight valueintATTACKER_DISTANCE_FROM_ENEMY_PENALTYMultiplied by the distance to enemyintATTACKER_GET_HIT_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)intATTACKER_GET_KILLED_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)intATTACKER_KILL_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)intBONUS_HEAL_TERRAINMultiplied by healing (spring is 1)intDEF__AT_MOST_ONE_IS_REACHABLEBonus when at most one defender will be reachable by the attacker next half-turn.intDEF__NOBODY_GETS_HURTBonus when no defender will be reachable by the attacker next half-turn.intDEF__NOONE_IS_GANGBANGEDBonus when no defender will be reachable by more than one attacker next half-turn.intDEFENDER_ADJACENT_TO_ENEMYStraight valueintDEFENDER_BY_DAMAGINGHAZARD_BONUSMultiplied by the number of relevant hexintDEFENDER_BY_EDGE_OR_BLOCKINGHAZARD_BONUSMultiplied by the number of relevant hexintDEFENDER_FORWARD_EARLY_PENALTYMultiplied by the distance to 2nd rowintDEFENDER_GET_HIT_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)intDEFENDER_GET_KILLED_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)intDEFENDER_KILL_SCALE_FACTORMultiplied by Kill Value (Point Value + stuff!)intDEFENDER_TOWER_HEIGHT_BONUSMultiplied by hex elevationintEXTRA_RANGESTRIKE_TARGETStraight valueintFIRST_RANGESTRIKE_TARGETStraight valueintGANG_UP_ON_CREATUREStraight valueintKILLABLE_TARGETS_SCALE_FACTORMultiplied by a number of creaturesintNATIVE_BOGStraight valueintNATIVE_BONUS_TERRAINStraight valueintNON_NATIVE_PENALTY_TERRAINStraight valueintOFFBOARD_DEATH_SCALE_FACTORWill be multiplied by point value of creatureintPENALTY_DAMAGE_TERRAINMultiplied by damage (drift is 1)intRANGESTRIKE_TITANStraight valueintRANGESTRIKE_WITHOUT_PENALTYStraight valueintTITAN_BY_EDGE_OR_BLOCKINGHAZARD_BONUSMultiplied by the number of relevant hexintTITAN_FORWARD_EARLY_PENALTYMultiplied by the distance to entranceintTITAN_TOWER_HEIGHT_BONUSMultiplied 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
-
-