4b0fe811ac
Contains returns false instead of true for invalid hexes
2025-03-12 17:55:50 +01:00
2362c6da21
Fixes for multiple new issues from Sonar
2025-02-21 15:57:39 +00:00
3bbfee0e1c
Fix usage of std::bitset
2025-01-31 11:41:44 +00:00
313fa1e80e
Remove commented-out code
2025-01-30 11:31:54 +00:00
d8ec69bfaa
Remove non-const iterators to BattleHexArray container
...
Replaced with several non-const methods to prevent modification of
internal storage without corresponding modification of internal flags
2025-01-29 23:02:51 +00:00
ecdd394bb1
Use BattleHex as const ref wherever possible
...
Minor Fixes
Drop unused function from BattleHexArray
2025-01-21 13:23:17 +01:00
8f63a82d60
Minor changes with BattleHex and BattleHexArray
2025-01-21 13:23:17 +01:00
5bfc837a8f
Fix regressions from battlehex PR (mostly related to towers)
2025-01-12 11:07:50 +00:00
dbe82b94f6
Changes following review:
...
- shared_ptr for destructibleEnemyTurns instead of raw pointer
- drop implicit int conversion for BattleHex class
and implement toInt() instead
- implement necessary operators in BattleHex
- adjust code to work properly with JSON serializer
2025-01-08 07:24:43 +01:00
4031006317
Drop battle elapsed time measurement, restore avHexes.
...
Github validation report fixes.
2025-01-06 23:28:47 +01:00
dad6437661
Refactor BattleHex, remake the use of precomputed neighbouring tiles containers.
...
- Moved short, frequently used functions to the BattleHex header for inlining
- Made BattleHex a class with a private hex value
- Moved getClosestTile implementation back to BattleHex
- Enabled access to static precomputed data in BattleHexArray via BattleHex
(note: circular dependency prevented static precomputed containers being directly placed in BattleHex)
2025-01-06 23:28:46 +01:00
ac8104d56d
SonarCloud recomendations.
...
Code review follow-up:
- Replace std::vector with boost::small_vector
- Rename function merge to insert
2025-01-06 23:28:45 +01:00
44a645b5e0
use bitset for presenceFlags and steady_clock for measurments
2025-01-06 23:28:45 +01:00
794595184e
use class scope static instead of function scope
2025-01-06 23:28:45 +01:00
7a8edff419
minor fixes
2025-01-06 23:28:44 +01:00
fb9a3da651
Unit.cpp refactor and some other minor changes
2025-01-06 23:28:44 +01:00
5f799d41b3
Use cached neighbouring tiles where possible
2025-01-06 23:18:19 +01:00
a99274d72e
BattleHexArray - new container for BattleHexes
2025-01-06 23:18:18 +01:00