1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/lib/battle
Ivan Savenko 7f9df2ef6f Tweaks to retaliation damage calculation:
- method now uses early returns to avoid deeply nested if's
- assume that retaliation damage is zero if target will die from attack
- account for BLOCKS_RETALIATION bonus when computing whether target
will retaliate
2024-05-17 12:23:51 +00:00
..
AccessibilityInfo.cpp convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
AccessibilityInfo.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
AutocombatPreferences.h Comment out unused OH3 options so they do not clutter code suggestions 2023-08-20 19:11:36 +02:00
BattleAction.cpp convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
BattleAction.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
BattleAttackInfo.cpp convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
BattleAttackInfo.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
BattleHex.cpp convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
BattleHex.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
BattleInfo.cpp Replace bonus string description with metastring that can properly 2024-04-09 16:13:30 +03:00
BattleInfo.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
BattleProxy.cpp Pass functor via reference to avoid costly copies 2023-11-18 19:43:11 +02:00
BattleProxy.h Pass functor via reference to avoid costly copies 2023-11-18 19:43:11 +02:00
BattleStateInfoForRetreat.cpp vcmi: massive refactoring v1 2023-04-05 22:33:12 +03:00
BattleStateInfoForRetreat.h BattleAI: avoid selfblocking on siege 2023-04-09 16:22:37 +03:00
CBattleInfoCallback.cpp Tweaks to retaliation damage calculation: 2024-05-17 12:23:51 +00:00
CBattleInfoCallback.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CBattleInfoEssentials.cpp Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
CBattleInfoEssentials.h Fix BattleEvaluator.cpp:286:32: error: function 'battleGetAllObstacles' with deduced return type cannot be used before it is defined 2024-01-17 14:41:47 +00:00
CObstacleInstance.cpp Split off some netpack structures into separate files 2023-10-23 13:59:15 +03:00
CObstacleInstance.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CPlayerBattleCallback.cpp Add missing semicolon after macro usage 2024-01-16 20:18:18 +00:00
CPlayerBattleCallback.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
CUnitState.cpp Call cheap to compute conditions before costly conditions 2023-11-18 19:42:45 +02:00
CUnitState.h Remove explicit convesion to int in operators 2023-11-15 15:55:19 +02:00
DamageCalculator.cpp accept log text suggestion 2024-04-18 08:40:25 +08:00
DamageCalculator.h Extract revenge calculation to separate method 2024-01-10 22:56:26 +01:00
Destination.cpp vcmi: modernize lib/battle 2023-02-16 23:37:19 +03:00
Destination.h vcmi: modernize lib/battle 2023-02-16 23:37:19 +03:00
IBattleInfoCallback.h Remove trailing semicolons from more macros 2024-01-16 19:46:21 +00:00
IBattleState.cpp
IBattleState.h Pass functor via reference to avoid costly copies 2023-11-18 19:43:11 +02:00
IUnitInfo.h
PossiblePlayerBattleAction.h Fixes 2024-03-29 12:28:14 +02:00
ReachabilityInfo.cpp convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
ReachabilityInfo.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
SideInBattle.cpp Explicitly convert identifier to underlying enumeration 2023-11-03 16:03:29 +02:00
SideInBattle.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
SiegeInfo.cpp convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
SiegeInfo.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
Unit.cpp Remove magic number 2023-11-07 22:47:11 +02:00
Unit.h Renamed MetaString methods to more logical names 2023-06-20 19:37:27 +03:00