1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/lib/rmg/modificators
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
..
ConnectionsPlacer.cpp Cleanup 2024-07-30 08:50:33 +02:00
ConnectionsPlacer.h Add RMG option "forcePortal" 2024-07-29 20:36:23 +02:00
MinePlacer.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
MinePlacer.h
Modificator.cpp Protect every access to zone tiles with a mutex 2024-03-27 06:16:48 +01:00
Modificator.h Remove trailing semicolons from more macros 2024-01-16 19:46:21 +00:00
ObjectDistributor.cpp Use CompoundMapObjectID in ObjectInfo 2024-09-14 09:23:28 +02:00
ObjectDistributor.h
ObjectManager.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
ObjectManager.h Style fix 2023-12-18 14:25:07 +01:00
ObstaclePlacer.cpp Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
ObstaclePlacer.h
PrisonHeroPlacer.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
PrisonHeroPlacer.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
QuestArtifactPlacer.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
QuestArtifactPlacer.h Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
RiverPlacer.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
RiverPlacer.h
RoadPlacer.cpp Merge remote-tracking branch 'vcmi/master' into develop 2024-07-11 17:43:44 +00:00
RoadPlacer.h Satisfy SonarCloud 2024-05-10 21:14:15 +02:00
RockFiller.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
RockFiller.h
RockPlacer.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
RockPlacer.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
TerrainPainter.cpp Split CTownHandler into smaller chunks 2024-07-21 18:21:48 +00:00
TerrainPainter.h
TownPlacer.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
TownPlacer.h Remove few more implicit conversions 2023-11-15 15:55:19 +02:00
TreasurePlacer.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
TreasurePlacer.h Move CompoundMapObjectID to separate file 2024-09-14 08:55:28 +02:00
WaterAdopter.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
WaterAdopter.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
WaterProxy.cpp Replaced most of usages of CRandomGenerator with vstd::RNG in library 2024-07-16 13:13:07 +00:00
WaterProxy.h - Check road connection for Shipyards 2023-07-07 21:27:24 +02:00
WaterRoutes.cpp Code cleanup 2024-03-27 08:03:19 +01:00
WaterRoutes.h