1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/AI/BattleAI
Xilmi df21a77857 Battle-AI-improvements
When defending the AI is now much smarter to use their defensive-structures like walls, towers and the moat to their advantage instead of allowing them to be lured out and killed in the open.

A penalty-multiplier is now applied when deciding which units to walk towards. If an ally is closer than us to the enemy unit in question, we reduce our score for walking towards that unit too. This shall help against baiting a whole flock of AI-stacks to overcommit on chasing an inferior stack of the enemy.
2024-12-05 21:09:24 +01:00
..
AttackPossibility.cpp Fix some of the new warnings from sonarcloud 2024-10-11 10:45:29 +00:00
AttackPossibility.h Revert "Merge branch 'fix-battle-ai' into develop" 2024-09-03 20:57:05 +02:00
BattleAI.cpp Support for configurable town fortifications 2024-08-28 19:42:14 +00:00
BattleAI.h Unified handling of battle sides ID's 2024-08-11 20:54:44 +00:00
BattleEvaluator.cpp Battle-AI-improvements 2024-12-05 21:09:24 +01:00
BattleEvaluator.h Battle-AI-improvements 2024-12-05 21:09:24 +01:00
BattleExchangeVariant.cpp Battle-AI-improvements 2024-12-05 21:09:24 +01:00
BattleExchangeVariant.h Battle-AI-improvements 2024-12-05 21:09:24 +01:00
CMakeLists.txt TBB is now a dependency of lib. Implemented multithreaded xBRZ scale 2024-08-17 15:25:26 +00:00
EnemyInfo.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
EnemyInfo.h wrap all library code into namespace if VCMI_LIB_NAMESPACE is defined 2022-09-24 15:55:21 +03:00
main.cpp Reduced usage of global variables - removed or made const / constexpr 2024-02-12 13:49:45 +02:00
PossibleSpellcast.cpp Spells configuration version 2 (effect-based) 2018-02-08 11:37:21 +03:00
PossibleSpellcast.h BattleAI: spellcast fixes and floating point score 2023-08-26 14:17:33 +03:00
PotentialTargets.cpp Revert "Merge branch 'fix-battle-ai' into develop" 2024-09-03 20:57:05 +02:00
PotentialTargets.h BattleAI: damage cache and switch to different model of spells evaluation 2023-08-26 13:06:51 +03:00
StackWithBonuses.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
StackWithBonuses.h Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
StdInc.cpp convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
StdInc.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
ThreatMap.cpp Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
ThreatMap.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00