1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/lib/mapping
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
..
CDrawRoadsOperation.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
CDrawRoadsOperation.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
CMap.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CMap.h CMap put move and remove artifact method 2024-09-23 23:30:38 +03:00
CMapDefines.h Removed no longer used netpacks 2024-08-14 14:13:50 +00:00
CMapEditManager.cpp Fix miscellaneous issues discovered by Sonar 2024-08-12 18:26:30 +00:00
CMapEditManager.h Fix test 2024-07-19 12:17:06 +00:00
CMapHeader.cpp Add simple support for translation of strings that were changed by 2024-10-06 19:42:15 +00:00
CMapHeader.h Removed save compatibility with 1.4 2024-08-29 18:51:53 +00:00
CMapInfo.cpp Added GameSettings to gamestate, potentially allowing to define game 2024-09-05 15:16:27 +00:00
CMapInfo.h Added 'Serializeable' base class for classes serializeable by pointer 2024-05-16 18:40:59 +00:00
CMapOperation.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
CMapOperation.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
CMapService.cpp chr loading 2024-08-31 12:39:23 +02:00
CMapService.h Moved serialization of ModCompatibilityInfo from MapFormat 2024-04-23 17:15:59 +03:00
MapEditUtils.cpp lib now uses shared_ptr for entities. Removed manual memory management. 2024-05-17 15:04:05 +00:00
MapEditUtils.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
MapFeaturesH3M.cpp tarnum icon 2024-08-31 22:05:36 +02:00
MapFeaturesH3M.h tarnum icon 2024-08-31 22:05:36 +02:00
MapFormat.h chr loading 2024-08-31 12:39:23 +02:00
MapFormatH3M.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
MapFormatH3M.h Fixed loading of text strings for hota quests 2024-04-22 13:49:17 +03:00
MapFormatJson.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
MapFormatJson.h Moved json files to new directory, split on per-class basis 2024-02-14 13:08:24 +02:00
MapIdentifiersH3M.cpp Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
MapIdentifiersH3M.h Improvements to type safety of Identifier class 2023-10-04 18:05:23 +03:00
MapReaderH3M.cpp IMarket suggestions 2024-08-20 18:49:48 +03:00
MapReaderH3M.h IMarket suggestions 2024-08-20 18:49:48 +03:00
ObstacleProxy.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
ObstacleProxy.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00