cc6f65d8da
Resolve Sonar issues in server code
2025-05-27 22:02:13 +03:00
8255a4b9ae
CGameHandler no longer inherits CGameInfoCallback, reduce direct access
...
to gamestate
2025-05-23 14:17:25 +03:00
f7d08a7288
Merge pull request #5700 from IvanSavenko/gamestate_pack_visitor
...
Remove CPack::applyGs method in favor of GameStatePackVisitor class
2025-05-14 11:53:15 +03:00
35644da2b7
Reogranize callback-related classes on 1 file = 1 class basis
2025-05-12 22:07:09 +03:00
86b832be67
Remove CPack::applyGs method in favor of GameStatePackVisitor class
2025-05-10 17:51:35 +03:00
283adc37d7
Unit stack rebalancing rework
...
- CStackInstance::count is now private with accessor methods
- CStackInstance::experience renamed to totalExperience and now stores
total stack experience (multiplied by stack size) to reduce rounding
errors
- CStackInstance::totalExperience is now private with accessors methods
- stack experience is now automatically reallocated on stack management
- Removed buggy BulkSmartRebalanceStacks pack, that mostly duplicates
BulkRebalanceStacks
- Renamed BulkSmartSplitStack to BulkSplitAndRebalanceStack to drop
unclear "smart" in name
- Reworked split-and-rebalance logic to correctly reallocate stack
experience
2025-05-01 18:18:30 +03:00
4d57a8ed36
Prefer to pass CGameState as reference instead of pointer
2025-04-27 14:57:31 +03:00
417ea6451a
Remove ConstTransitivePtr from hero and town instances
2025-04-27 14:57:30 +03:00
975d9aedc9
Merge branch 'vcmi/beta' into 'vcmi/develop'
2025-04-13 18:53:54 +03:00
cbfaefd805
Fix rare crash if player selects maximum movement speed and moves hero
...
across event that grants enough XP to level up
2025-04-06 18:43:55 +03:00
2fdf40e7a9
Remove connection pointer from CPack
2025-03-03 10:46:00 +00:00
81f0222c68
Merge pull request #4741 from IvanSavenko/serialize_local_state
...
Serialize local state of player interface
2024-10-10 15:03:14 +03:00
a8f8c3f4b1
Replaced most of accesses to CGObjectInstance::pos with anchorPoint()
2024-10-09 15:43:46 +00:00
679181c103
Implemented serialization of local player state in json form
2024-10-08 20:04:32 +00:00
f6f6f98580
Merge pull request #4699 from SoundSSGood/backpack-arts-sorting
...
Backpack artifacts sorting
2024-10-07 17:55:42 +03:00
e22d15b1d8
manageBackpackArtifacts
2024-10-02 12:45:50 +03:00
d929bfb9d1
rename; introduce factor
2024-09-28 15:05:13 +02:00
7707adc44f
checks on server
2024-09-28 01:18:10 +02:00
5b2aa4dc71
swapping spells
2024-09-28 00:34:25 +02:00
a9327b3fa3
netpacks
2024-09-27 22:47:22 +02:00
81af66d35b
Move visit query to a separate class, remove no longer needed Cast.h
2024-09-04 14:32:36 +00:00
327ff01471
Implemented explicitly visitable town buildings, e.g. hota mana vortex
...
Added flag `manualHeroVisit` flag to town building. If this flag is set,
then building will only be activated on click and will not give its
effect on hero recrutiment, hero visit, or new day.
This allows implementing changes to Mana Vortex from HotA
2024-09-03 16:31:07 +00:00
2e3e6b1553
market->getObjInstanceID()
2024-08-21 01:01:23 +03:00
58bb2b58e3
IMarket suggestions
...
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com >
2024-08-20 18:49:48 +03:00
cd7ebea9e3
cleanup unused code
2024-08-20 18:49:47 +03:00
072af5bd6d
basic support for bank
2024-08-04 15:44:57 +02:00
8b861fc58f
Do not check for guards when teleporting using means other than DD
2024-05-07 20:05:23 +00:00
ac11a0e639
Blocked most of incoming network packs during turns of other players
2024-04-30 17:51:31 +03:00
ce9d2d8ab8
Switching costume
2024-04-27 21:35:37 +03:00
25dea7e364
Saving costume
2024-04-27 21:35:37 +03:00
d5a2ad1be8
Allow sending requests to move across multiple tiles at once
2024-04-20 12:28:50 +03:00
9f688e6fb7
MoveArtifact, BulkMoveArtifacts PlayerColor player field
2024-03-07 22:28:56 +02:00
b1f52eec41
ManageBackpackArtifacts
2024-03-07 18:16:22 +02:00
c23953eac5
Remove custom casts
2024-02-14 12:56:37 +02:00
80fc2bb695
Merge remote-tracking branch 'vcmi/develop' into lobby
2024-02-03 21:11:34 +02:00
a42b60feb9
suggested changes
2024-02-01 13:28:08 +02:00
c6ca6ad835
sacrifice routine
2024-01-27 23:01:57 +02:00
652f009181
arts altar - arts holder
2024-01-27 15:28:21 +02:00
322c5faf63
Merge remote-tracking branch 'vcmi/develop' into lobby
2024-01-26 16:52:23 +02:00
4d0c0f10a9
Merge pull request #3530 from Laserlicht/tavern
...
Invite hero
2024-01-26 13:12:55 +02:00
24d25730ad
Changed checks for null with checks for hasValue
2024-01-20 16:41:10 +02:00
346beea49c
invite hero backend
2024-01-20 01:09:55 +01:00
0a1153e1c6
Switch client-server communication to new API
2024-01-19 23:49:59 +02:00
6b81012f31
Use variant identifier in netpacks where applicable
2023-11-08 14:00:23 +02:00
ab2f6abb87
ArtifactLocation now use ID for artHolder identification part2
2023-10-29 17:46:13 +02: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
d7d435dcb7
Add game pause
2023-10-08 16:03:57 +02:00
97097c20ad
Merge pull request #2874 from SoundSSGood/exchange-window-update
...
Exchange window update
2023-09-27 15:50:52 +03:00
42d9ba6c82
Merge pull request #2877 from IvanSavenko/simturn_fixes
...
Changes for simturns support
2023-09-20 22:09:25 +03:00
8c0d78f1d9
Added initiator-player to packs that add/remove/move objects
2023-09-19 19:24:34 +03:00