1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
vcmi/lib/mapObjectConstructors
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
..
AObjectTypeHandler.cpp introduce getModScope into AObjectTypeHandler 2024-08-12 13:58:03 +02:00
AObjectTypeHandler.h introduce getModScope into AObjectTypeHandler 2024-08-12 13:58:03 +02:00
CBankInstanceConstructor.cpp Minor refactoring of translations: 2024-10-06 19:42:15 +00:00
CBankInstanceConstructor.h Moved banks randomization to server-side with client netpack 2024-07-16 13:13:39 +00:00
CDefaultObjectTypeHandler.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
CObjectClassesHandler.cpp Fixes for loading 1.5 mods in vcmi 1.6 2024-10-10 09:50:56 +00:00
CObjectClassesHandler.h Merge remote-tracking branch 'origin/develop' into custom_objects_per_zone 2024-09-14 10:19:22 +02:00
CommonConstructors.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CommonConstructors.h Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CRewardableConstructor.cpp Merge pull request #4712 from IvanSavenko/detect_conflict 2024-10-07 17:57:52 +03:00
CRewardableConstructor.h Fixes randomization of Witch Hut preconfigured in map editor 2024-10-03 12:35:15 +00:00
DwellingInstanceConstructor.cpp Minor refactoring of translations: 2024-10-06 19:42:15 +00:00
DwellingInstanceConstructor.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
HillFortInstanceConstructor.cpp Cleaned up object constructors to reduce duplicated code 2023-06-16 17:59:50 +03:00
HillFortInstanceConstructor.h Moved json files to new directory, split on per-class basis 2024-02-14 13:08:24 +02:00
IObjectInfo.h - Handle new configurable banks 2024-09-21 13:36:28 +02:00
RandomMapInfo.h Remove no longer used serialization methods 2023-11-08 21:27:05 +02:00
ShipyardInstanceConstructor.cpp Split massive CModHandler class/file into multiple parts: 2023-07-30 22:17:47 +03:00
ShipyardInstanceConstructor.h Moved json files to new directory, split on per-class basis 2024-02-14 13:08:24 +02:00
SObjectSounds.h Remove no longer used serialization methods 2023-11-08 21:27:05 +02:00