1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-09 01:06:07 +02:00
Commit Graph

38 Commits

Author SHA1 Message Date
645b95ba02 Renamed LibClasses * VLC to GameLibrary * LIBRARY 2025-02-21 16:54:56 +00:00
d3af9f1c67 Removed pointer to VLC entity from CStackBasicDescriptor 2024-10-30 16:47:02 +00:00
10ad0fc760 Split CHeroHandler.cpp/.h into 1 file per class
All parts of CHeroHandler.cpp are now in lib/entities/hero
Adjusted includes to use new paths
No functionality changes
2024-10-13 14:01:09 +00:00
3dd4fa2528 Reduce usage of pointers to VLC entities
Final goal (of multiple PR's) is to remove all remaining pointers from
serializeable game state, and replace them with either identifiers or
with shared/unique pointers.

CGTownInstance::town and CGHeroInstance::type members have been removed.
Now this data is computed dynamically using subID member.

VLC entity of a town can now be accessed via following methods:
- getFactionID() returns ID of a faction
- getFaction() returns pointer to a faction
- getTown() returns pointer to a town

VLC entity of a hero can now be accessed via following methods:
- getHeroTypeID() returns ID of a hero
- getHeroClassID() returns ID of a hero class
- getHeroType() returns pointer to a hero
- getHeroClass() returns pointer to a hero class
2024-10-10 12:28:08 +00:00
586a32a616 CArtifactSet cleanup 2024-09-23 23:39:19 +03:00
f4dc2dcd22 add missing serialization of spells in Limiter 2024-09-21 22:40:58 +02:00
87eb026184 support 0 spellpower and knowledge 2024-08-06 01:26:39 +08:00
a15366f5a5 Make IObjectInterface::cb non-static 2024-01-19 13:55:21 +02:00
b62e801530 Fix uninitialized variable in Seer Huts 2023-12-10 19:48:27 +02:00
c1c2119f3d Show Seer Hut quest icon on right click. Fix broken tooltip. 2023-11-06 20:37:07 +02:00
5487f07d3b added toEntity overload that accepts generic Services class 2023-11-04 17:04:53 +02:00
184f5a72cc Use toEntity/toXXX methods in Identifier instead VLC objects access 2023-11-03 16:03:29 +02:00
8f25f1fd4b Serialize identifiers without implicit conversion to int 2023-11-03 16:03:29 +02:00
10e50548e7 Converted Component class to use VariantIdentifier instead of int 2023-11-02 12:00:04 +02:00
b88a8da4e8 Split off some netpack structures into separate files 2023-10-23 13:59:15 +03:00
8f33fdcd83 Allow learning banned spell from Scholars (H3 logic) 2023-10-18 17:38:40 +03:00
bb05c2dea5 Implemented configurable shrine 2023-10-16 00:12:39 +03:00
a3b2354481 Implemented visit mode "limiter". Fixed h3m variable loading 2023-10-16 00:12:38 +03:00
5f52e6b35e Revert "Auxiliary commit to revert individual files from 2bf8cdc9f525099348439c700af0466955f01b30"
This reverts commit d9952495391f7ac77dd32dcf33f487e146b3655b.
2023-10-13 23:35:37 +02:00
2bf8cdc9f5 Hota-related bugs were fixed 2023-10-13 12:52:45 +02:00
74a90cde5d Fix hero level limiter 2023-10-12 12:52:01 +02:00
7ccd4cdcb2 Refactor quests progress 2023-10-11 21:10:42 +02:00
2b88e6941c Fix mana limiter 2023-10-11 01:43:24 +02:00
5b10b457cf Fix code review suggestions 2023-10-11 00:47:19 +02:00
d2d64dbddd Bugfixes 2023-10-10 23:44:29 +02:00
bb238f9b72 New quests work 2023-10-10 23:44:29 +02:00
1460541ee5 New limiter based quests 2023-10-10 23:44:29 +02:00
b7568a160c Fixes 2023-10-10 23:44:29 +02:00
6a7b23c007 Additional properties for limiter 2023-10-10 23:44:28 +02:00
937a8d63c7 Check for artifacts copies in limiter 2023-10-10 23:44:28 +02:00
2960895041 Issues fixed 2023-09-17 22:19:45 +02:00
4f76eb3fce Add limiter serialization 2023-09-15 23:00:33 +02:00
06f01c3b82 Seerhut works as rewardable object 2023-09-15 10:06:06 +02:00
62cd8b12d4 Converted several namespace enums to enum class 2023-08-25 13:38:02 +03:00
85262cf4f5 Moved CGameState files into a separate directory 2023-06-26 17:15:59 +03:00
d6a357fd17 Split some map object files into smaller files. Reduced includes usage. 2023-06-02 21:47:37 +03:00
6fc3bb6690 Attempt to fix msvs build 1 2023-05-01 01:15:48 +04:00
1b4d117790 deeper decoupling 2023-04-30 17:13:07 +04:00