1daf9d3a44
Fix possible crash on hovering over inaccessible hexes on other side of
...
the battlefield when war machine is making turn
2025-07-01 13:35:30 +03:00
bc4a1b06fc
Fix crash on moving double-wide units in some obstacle configurations
2025-07-01 13:03:25 +03:00
298ec472bf
Split BattleInterfaceClasses into smaller files
2025-06-18 17:29:20 +03:00
42317e7128
Block attempts to attack unit behind obstacle in UI
2025-05-29 11:24:24 +03:00
797f8f06a6
Allow moving double-wide unit 1 tile backwards
2025-05-20 18:13:29 +03:00
35644da2b7
Reogranize callback-related classes on 1 file = 1 class basis
2025-05-12 22:07:09 +03:00
156de5b17e
Added GameInstance class
...
- available as global GAME
- integrates LOCPLINT (CPlayerInterface)
- integrates CGI->mh (CMapHandler)
- integrates CSH (CServerHandler)
2025-02-21 16:54:06 +00:00
ffd37a8fa8
Removed CGI in favor of VLC. Map handle is for now global variable
2025-02-21 16:53:14 +00:00
f657e85305
Integrated CClientState into GameEngine class
2025-02-21 16:53:14 +00:00
cacceda950
Renamed CGuiHandler to GameEngine
...
- class CGuiHandler is now called GameEngine to better describe its
functionality
- renamed global GH to more clear ENGINE
- GH/ENGINE is now unique_ptr to make construction / deconstruction
order more clear and to allow interface / implementation split
- CGuiHandler.cpp/h is now called GameEngine.cpp/h and located in root
directory of client dir
2025-02-21 16:53:13 +00:00
2362c6da21
Fixes for multiple new issues from Sonar
2025-02-21 15:57:39 +00:00
d586d4ea89
Do not highlight unavailable columns of hexes on battlefield
2025-02-06 14:18:56 +00:00
5ff9baf565
Additional checks for potentially invalid hexes
2025-02-01 12:23:22 +00:00
f858a6e04b
Merge pull request #5266 from MichalZr6/battlefield
...
Minor fixes to BattleHexArray. BattleHex'es as const reference where possible.
2025-01-25 17:44:14 +02:00
668bf63fc0
Remove access to internal surface of Canvas
2025-01-21 21:15:21 +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
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
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
7a8edff419
minor fixes
2025-01-06 23:28:44 +01:00
8c3a417527
Cleanup
2025-01-06 23:18:20 +01:00
a99274d72e
BattleHexArray - new container for BattleHexes
2025-01-06 23:18:18 +01:00
251155d913
More robust management of body/shadow/overlay split
2024-11-17 17:54:55 +00:00
dc56047661
Add hex highlight for SPELL_LIKE_ATTACK in casting mode & minor cleanup
2024-09-22 20:38:49 +02:00
5c11a10667
Fix selection highlight in combat
2024-08-17 15:25:26 +00:00
748a3a1b64
Fixed minimap generation when upscaled mode is used
2024-08-17 15:25:26 +00:00
9fba3d97f1
Renamed & unified OBJECT_CONSTRUCTION macro set
2024-08-09 15:30:04 +00:00
1dec5e56a9
Fix cursor shadow option in battles
2024-07-19 19:35:39 +00:00
4f8f217b49
Moved range highlight transforms to config file
2024-07-19 10:08:50 +00:00
0d6ec0d224
Reviewed usage of EBlitMode, now specified clearly in all cases
2024-07-19 10:08:50 +00:00
b850b6339f
Flipped images are now tracked by RenderHandler
2024-07-19 10:08:50 +00:00
230add02e4
Remove no longer used code
2024-07-19 10:08:50 +00:00
600b06b74d
Moved all handling of image loading to render handler
2024-07-19 10:08:50 +00:00
02e429e973
Fix typos using https://github.com/crate-ci/typos
...
Changes were reviewed manually
2024-06-24 03:47:19 +02:00
7a6722bc45
fix spell hover
2024-01-07 18:12:17 +01:00
f4bff876d5
make queue interactable
2024-01-07 16:38:37 +01:00
a1a5bc28c2
convert line endings from CRLF (Windows) to LF (Linux/Unix)
...
Mixed line endings cause problems when exporting patches with
git-format-patch and then trying to "git am" a patch with mixed and
non-matching line endings. In such a situation git will fail to apply
the patch.
This commit runs the dos2unix tools on the remaining files with CRLF
(\r\n) line endings to convert them to line-feeds (\n) only.
Files that are Windows specific like *.vcxproj and *.props files were
not converted.
Closes : #3073
2023-10-19 16:23:21 +02:00
e8453916cf
Merge remote-tracking branch 'vcmi/beta' into develop
2023-09-08 18:49:06 +03:00
f39fbe5151
Merge pull request #2757 from IvanSavenko/filesystem_refactor
...
Filesystem refactor - part 1
2023-09-07 10:51:02 +03:00
346eead8e0
Show spell cursor when casting spell in touch input mode
2023-09-06 23:01:43 +03:00
41210c1dbf
Client-side support for multiple battles
2023-09-06 16:03:47 +03:00
1d0e696db6
Added RenderHandler that acts as factory for images and animations
2023-09-04 18:22:34 +03:00
823ffa7a07
Always use ResourcePath for referencing images and animations
2023-09-04 18:22:34 +03:00
18db944083
Replaced clickReleased with clickPressed where applicable in H3
2023-07-09 17:48:25 +03:00
ca889a5c2a
Replaced clickLeft with clickPressed clickReleased methods
2023-07-08 14:33:04 +03:00
a84ccb37c2
Merge pull request #2250 from IvanSavenko/event_handling_fixes
...
Slider input event fix
2023-06-25 17:39:55 +03:00
27c488e62f
Small changes after review.
2023-06-23 20:05:15 +03:00
afe0146021
Renamed settings option to reflect that same option is used for both ranges.
2023-06-23 19:50:39 +03:00
b6ab1e1505
Removed #regions
2023-06-23 19:13:39 +03:00
1cba41a3c3
IsHexInRangeLimit() is now a common function
...
Plus some minor rearranging of code.
2023-06-23 19:13:39 +03:00