1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/lib/rmg
Ivan Savenko 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
..
modificators Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
threadpool Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
CMapGenerator.cpp It is now possible to define game settings in rmg template 2024-09-05 15:16:28 +00:00
CMapGenerator.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
CMapGenOptions.cpp RMG: Enable only those roads, that are enabled in persistentStorage.json 2024-09-04 08:37:45 +09:00
CMapGenOptions.h Removed save compatibility with 1.4 2024-08-29 18:51:53 +00:00
CRmgTemplate.cpp Merge remote-tracking branch 'origin/develop' into custom_objects_per_zone 2024-09-14 10:19:22 +02:00
CRmgTemplate.h Merge remote-tracking branch 'origin/develop' into custom_objects_per_zone 2024-09-14 10:19:22 +02:00
CRmgTemplateStorage.cpp Removed remaining usages of std::vector<bool> 2023-11-15 15:55:18 +02:00
CRmgTemplateStorage.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00
CZonePlacer.cpp Ignore new connections for zone placement. 2024-07-30 05:07:05 +02:00
CZonePlacer.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
float3.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
Functions.cpp Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
Functions.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
ObjectConfig.cpp Default object limit to unlimited 2024-09-21 13:36:51 +02:00
ObjectConfig.h Move CompoundMapObjectID to separate file 2024-09-14 08:55:28 +02:00
ObjectInfo.cpp Use CompoundMapObjectID in ObjectInfo 2024-09-14 09:23:28 +02:00
ObjectInfo.h Use CompoundMapObjectID in ObjectInfo 2024-09-14 09:23:28 +02:00
PenroseTiling.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
PenroseTiling.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
RmgArea.cpp Route roads away from zone borders 2024-05-10 15:35:33 +02:00
RmgArea.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
RmgMap.cpp Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
RmgMap.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
RmgObject.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
RmgObject.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
RmgPath.cpp Minor optimizations 2023-12-13 22:10:39 +01:00
RmgPath.h vcmi: modernize lib/rmg 2023-02-14 02:50:39 +03:00
TileInfo.cpp Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
TileInfo.h Converted (almost) all namespace enum's to enum classes 2023-08-25 13:38:02 +03:00
Zone.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
Zone.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00