cc274c4d34
GameRandomizer is now in lib, add implementation
2025-05-19 18:51:42 +03:00
456525109e
Replaced undescriptive bool true/false with more clear enum for
...
absolute/relative change via netpacks
2025-05-16 17:21:39 +03:00
4d4da0454f
map objects hierarchy now uses IGameInfoCallback
2025-05-14 18:33:20 +03:00
716da918f8
Completely remove IGameCallback class
...
- CClient now inherits directly from CPrivilegedInfoCallback, like
IGameCallback did before. However CClient no longer needs dummy
implementation of IGameEventCallback
- CGObjectInstance hierarchy now uses CPrivilegedInfoCallback for
callback. Actual events can only be emitted in calls that receive
IGameEventCallback pointer, e.g. heroVisit
- CGameHandler now inherits directly from both CPrivilegedInfoCallback
and IGameEventCallback as it did before via IGameCallback
2025-05-14 13:39:41 +03:00
d1d2cf4189
Fix crashes on game start, gamestate now derives from GameCallbackHolder
2025-04-27 14:57:31 +03:00
f03cc06176
Battle Info uses ObjectInstanceID's instead of pointers
2025-04-27 14:57:31 +03:00
6d65641a43
Gamestate is now passed as shared pointer
2025-04-27 14:57:30 +03:00
71bc1054d0
BattleStart pack now uses unique_ptr
2025-04-27 14:57:30 +03:00
0101d5ff67
BattleInfo stacks are now unique_ptr's
2025-04-27 14:57:30 +03:00
bdae7285ae
Objects list is now private member of CMap
2025-04-27 14:57:30 +03:00
1f502c0548
CMap towns and heroes on map fields are now private
2025-04-27 14:57:30 +03:00
0ada2a5ebd
Map objects now use shared_ptr (game)
2025-04-27 14:57:30 +03:00
04ca8aca9f
Update tests
2024-10-30 16:22:12 +00:00
c0f5c7c0ea
Replace pointer with reference in pack apply functions
2024-10-07 14:59:46 +00:00
786f80871e
Replace more usages of pointers to packs with references
2024-10-07 14:59:14 +00:00
39a2c29c97
Removed creatureBank flag from battle, battles now receive BattleLayout
...
struct that defines how units are placed in combat
2024-09-12 12:11:18 +00:00
7466d7452d
vcmiscrolls
2024-09-05 15:51:45 +03:00
2a05fbdd50
Unified handling of battle sides ID's
...
- Replaced BattleSide namespace-enum with enum class
- Merged two different BattleSide enum's into one
- Merged BattlePerspective enum into BattleSide enum
- Changed all places that use integers to represent battle side to use
BattleSide enum
- Added BattleSideArray convenience wrapper for std::array that is
always 2-elements in size and allows access to its elements using
BattleSide enum
2024-08-11 20:54:44 +00:00
3e5df61946
code review
2024-07-29 22:54:42 +02:00
6273e678a4
fix
2024-07-25 10:30:57 +02:00
c91f8cd511
Fix tests
2024-07-16 13:13:39 +00:00
55bf75c43e
Remove no longer used random seeds from StartInfo
2024-07-16 13:13:39 +00:00
02e429e973
Fix typos using https://github.com/crate-ci/typos
...
Changes were reviewed manually
2024-06-24 03:47:19 +02:00
565d810806
Remove test for no longer existing logic
2024-06-01 12:18:09 +00:00
8b861fc58f
Do not check for guards when teleporting using means other than DD
2024-05-07 20:05:23 +00:00
922966dcf8
Renamed JsonNode::meta to more logical modScope. Member is now private
2024-02-26 12:55:49 +02:00
c3957c2c2a
Moved json files to new directory, split on per-class basis
2024-02-14 13:08:24 +02:00
eaca128c99
Code cleanup
2024-01-26 19:15:57 +02:00
9af7c63a26
Fix build
2024-01-19 13:56:05 +02:00
8800b361fd
Disable broken tests so the working ones don't rot
2024-01-08 19:13:44 +00:00
7e6ab5e87b
fix test & fix build & suggested changes
2023-10-29 17:46:14 +02:00
5cbf5031ea
move SetStackEffect to a separate file
2023-10-24 01:27:52 +03:00
ae92bdfb51
Fix Lua and test building
2023-10-23 16:05:38 +03:00
037efdf5fc
Improvements to type safety of Identifier class
...
- Constructor of Identifier from integer is now explicit
- Lobby hero/town selection now uses Identifiers instead of int's
- Removed serialization workaround for hero portraits
- Added dummy objects for custom heroes portraits for ID resolver to use
- HeroInstance now stores portrait ID only in case of custom portrait
- Fixed loading of campaign heroes portraits on RoE maps
2023-10-04 18:05:23 +03:00
5b97c323d3
Rename hero strings to text id
2023-09-28 00:04:05 +02:00
d257fb37f0
Use optional instead of Json for queries
2023-09-26 13:42:20 +03:00
f39fbe5151
Merge pull request #2757 from IvanSavenko/filesystem_refactor
...
Filesystem refactor - part 1
2023-09-07 10:51:02 +03:00
fc4dfda00f
Added support for concurrent battles to gamestate and server
2023-09-06 16:03:02 +03:00
823ffa7a07
Always use ResourcePath for referencing images and animations
2023-09-04 18:22:34 +03:00
e54287ea5d
Converted remaining identifier to new system
2023-08-25 13:38:02 +03:00
15847c89b6
Fix tests
2023-08-22 21:02:32 +04:00
e733b55c90
Removed buggy and poorly designed fromString method
...
Use VLC->modh directly with proper parameters instead
2023-07-25 22:36:45 +03:00
85262cf4f5
Moved CGameState files into a separate directory
2023-06-26 17:15:59 +03:00
a6de9097be
vcmi: rename HeroBonus.h to Bonus.h
2023-05-02 11:20:58 +03:00
17c9dc3115
fix tests
2023-04-29 06:15:14 +04:00
2680046dd0
vcmi: make tests builds at least
2023-04-27 20:59:55 +03:00
11b237a23c
vcmi: massive refactoring v1
2023-04-05 22:33:12 +03:00
20c102e648
Remove T prefix from new typedefs
2022-09-29 11:44:46 +02:00
4ea57ea7fc
A variety of suggested style tweaks
2022-09-25 09:33:56 +02:00
494b0f0226
First version that compiles
2022-09-21 11:34:23 +02:00