1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00
vcmi/lib/mapObjects
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
..
CArmedInstance.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CArmedInstance.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CBank.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
CBank.h blockingDialog functions: the answer parameter can be negative 2024-08-09 00:28:28 +02:00
CGCreature.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CGCreature.h Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CGDwelling.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CGDwelling.h All objects that can be owned by player now implement IOwnableObject 2024-08-28 12:51:28 +00:00
CGHeroInstance.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CGHeroInstance.h Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CGMarket.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
CGMarket.h Removed save compatibility with 1.4 2024-08-29 18:51:53 +00:00
CGObjectInstance.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
CGObjectInstance.h Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
CGPandoraBox.cpp Removed creatureBank flag from battle, battles now receive BattleLayout 2024-09-12 12:11:18 +00:00
CGPandoraBox.h blockingDialog functions: the answer parameter can be negative 2024-08-09 00:28:28 +02:00
CGTownInstance.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CGTownInstance.h Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CObjectHandler.cpp Moved json files to new directory, split on per-class basis 2024-02-14 13:08:24 +02:00
CObjectHandler.h Remove no longer used serialization methods 2023-11-08 21:27:05 +02:00
CompoundMapObjectID.h Move CompoundMapObjectID to separate file 2024-09-14 08:55:28 +02:00
CQuest.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
CQuest.h blockingDialog functions: the answer parameter can be negative 2024-08-09 00:28:28 +02:00
CRewardableObject.cpp Replace pointer with reference in pack apply functions 2024-10-07 14:59:46 +00:00
CRewardableObject.h Unify rewardable map object and town building code 2024-09-27 15:41:24 +00:00
IMarket.cpp Remove marketModes as member 2024-08-27 14:07:00 +00:00
IMarket.h Removed save compatibility with 1.4 2024-08-29 18:51:53 +00:00
IObjectInterface.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
IObjectInterface.h Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
IOwnableObject.h All objects that can be owned by player now implement IOwnableObject 2024-08-28 12:51:28 +00:00
MapObjects.h Converted all h3 banks to rewardable, remove most of hardcoded checks 2024-09-12 12:11:18 +00:00
MiscObjects.cpp Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
MiscObjects.h Implement IOwnableObject interface for shipyard 2024-09-04 19:46:36 +00:00
ObjectTemplate.cpp Move CompoundMapObjectID to separate file 2024-09-14 08:55:28 +02:00
ObjectTemplate.h Move CompoundMapObjectID to separate file 2024-09-14 08:55:28 +02:00
ObstacleSetHandler.cpp Merge pull request #4025 from IvanSavenko/shared_ptr_lib 2024-05-30 19:14:06 +03:00
ObstacleSetHandler.h Fix typos using https://github.com/crate-ci/typos 2024-06-24 03:47:19 +02:00
TownBuildingInstance.cpp Reduce usage of pointers to VLC entities 2024-10-10 12:28:08 +00:00
TownBuildingInstance.h Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00